Commit 63d8f65
authored
fix flake (#355)
## Fix flaky test in TestRegisterNode_Success_Plugin
### Problem
The `TestRegisterNode_Success_Plugin` test was flaky due to
non-deterministic map iteration order in Go. The test expected labels in
a specific order, but Go's map iteration order is not guaranteed,
causing intermittent failures in CI.
### Solution
- Sort `extraLabels` map keys alphabetically before iterating to ensure
deterministic label ordering
- Added `sort` import to `register_node.go`1 parent fd159c8 commit 63d8f65
File tree
2 files changed
+16
-2
lines changed- .changeset
- engine/cld/offchain
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | | - | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
0 commit comments