kubo/core
Marcin Rataj cd08e2b056 fix(test): fix flaky TestAddMultipleGCLive race condition
added time.Sleep after spawning GC goroutines to ensure they reach
GCLock() before the test proceeds. without this, the adder's
maybePauseForGC() might check GCRequested() before GC has even
requested the lock, causing the lock to not be released and GC to
block indefinitely.

this matches the existing pattern in TestAddGCLive which already
had this sleep.

also replaced context.Background() with t.Context() in both
TestAddMultipleGCLive and TestAddGCLive for proper test lifecycle
management.
2026-01-08 02:03:44 +01:00
..
commands keys: skip bad keys when listing (#11115) 2026-01-07 09:56:11 -08:00
coreapi keys: skip bad keys when listing (#11115) 2026-01-07 09:56:11 -08:00
corehttp feat: support GetClosesPeers (IPIP-476) and ExposeRoutingAPI by default (#10954) 2025-11-19 10:51:56 +00:00
coreiface refactor: replace context.WithCancel with t.Context (#11083) 2025-11-28 16:39:55 +01:00
corerepo chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
coreunix fix(test): fix flaky TestAddMultipleGCLive race condition 2026-01-08 02:03:44 +01:00
mock fix: deadlock on retrieving WebTransport addresses (#9857) 2023-05-08 16:11:03 +02:00
node test: replace go-clock with testing/synctest (#11131) 2026-01-07 13:30:15 -08:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
builder.go chore: migrate bootstrap to ipfs/boxo (#10158) 2023-10-31 18:25:14 +01:00
core_test.go feat(cli/rpc/add): fast provide of root CID (#11046) 2025-11-14 11:08:29 -08:00
core.go feat(cli/rpc/add): fast provide of root CID (#11046) 2025-11-14 11:08:29 -08:00