Skip to content

Commit 724479d

Browse files
committed
fix: wake idle mode in TestRun_MultipleFlushCycles cycle 1 to prevent CI deadlock 🐛
1 parent de399b9 commit 724479d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/ledger/internal/bootstrap/balance_sync.collector_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,9 @@ func TestRun_MultipleFlushCycles(t *testing.T) {
966966
}()
967967

968968
// Cycle 1: size trigger
969+
// Send keys and wake idle mode so the collector fetches them.
969970
keyCh <- []string{"c1a", "c1b"}
971+
waitCh <- struct{}{}
970972

971973
require.Eventually(t, func() bool {
972974
return rec.count() >= 1

0 commit comments

Comments
 (0)