Commit 8bd1688
committed
fix: make gc_test.go TestFindContainerID deterministic
The 'multiple annotations returns first' test expected a specific
container ID from findContainerID(), but the function iterates over
a Go map which has non-deterministic ordering. This caused the CI
Unit Tests job to fail intermittently with:
gc_test.go:82: findContainerID() = "ccc333ddd444", want "aaa111bbb222"
Update the test to accept either of the two possible container IDs.
Fixes CI failure in PR #171.1 parent 85ed7b8 commit 8bd1688
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments