Commit ff73a89
fix(test): make extensions analytics test tolerant of nil snapshot slice
Three CI fixes:
1. extensions_cache_invalidation_test.go: TestExtensionsCacheInvalidation
Analytics/records_no_MutationEvent_when_extension_delete_is_skipped
asserted assert.Equal([]MutationEvent{}, stats.MutationEvents). The
snapshot's slices.Clone returns nil when the underlying slice is
never appended to, so DeepEqual mismatched the empty-slice expected
value against the nil actual. Switch to len() == 0, which is exact
and tolerates the nil/empty implementation detail.
2. cache_key_parity_test.go: gci import grouping fix per .golangci.yml
sections (standard / default / wundergraph / wundergraph/graphql-go-tools).
3. planner_test.go: gofmt -s fix for redundant []int{0} slice literals
in the reused-planner regression test.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 923b742 commit ff73a89
3 files changed
Lines changed: 7 additions & 3 deletions
File tree
- v2/pkg/engine
- plan
- resolve
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
974 | | - | |
975 | | - | |
| 974 | + | |
| 975 | + | |
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
0 commit comments