Refactor event processing in tests for chronological order
- Updated test files to collect events first and sort them by their CreatedAt timestamp before processing, ensuring events are handled in chronological order. - Removed redundant error checks for scanner errors after event processing. - Enhanced clarity and maintainability of event handling in tests across multiple files, including export, fetch, and query tests. - Adjusted expected index counts in tests to reflect changes in event structure and processing logic.
This commit is contained in:
@@ -177,10 +177,10 @@ package json
|
||||
import (
|
||||
"encoding"
|
||||
|
||||
"encoding/json/internal/jsonflags"
|
||||
"encoding/json/internal/jsonopts"
|
||||
"encoding/json/jsontext"
|
||||
jsonv2 "encoding/json/v2"
|
||||
"next.orly.dev/pkg/json/internal/jsonflags"
|
||||
"next.orly.dev/pkg/json/internal/jsonopts"
|
||||
"next.orly.dev/pkg/json/jsontext"
|
||||
jsonv2 "next.orly.dev/pkg/json/v2"
|
||||
)
|
||||
|
||||
// Reference encoding, jsonv2, and jsontext packages to assist pkgsite
|
||||
|
||||
Reference in New Issue
Block a user