kubo/core/coreunix
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
..
test/data Fix wrong added filename 2018-06-28 09:07:23 -04:00
add_test.go fix(test): fix flaky TestAddMultipleGCLive race condition 2026-01-08 02:03:44 +01:00
add.go fix: Provide according to Reprovider.Strategy (#10886) 2025-08-08 10:56:44 +02:00
metadata_test.go feat: go-libp2p 0.36 and /webrtc-direct listener (#10463) 2024-08-06 21:25:27 +02:00
metadata.go chore: migrate go-libipfs to boxo 2023-03-28 22:05:25 -04:00