SIGN IN SIGN UP

test: eliminate arbitrary sleep delays in artifact DAO and gtask pool tests (#23778)

Remove 2 seconds of time.Sleep delays in dao_test.go by using explicit timestamp offsets (now.Add) for artifact creation. In pool_test.go, replace 500ms of hardcoded sleep delays with assert.Eventually polling. This accelerates test execution by 2.5 seconds and prevents test flakiness.

Signed-off-by: Norway-02 <anshulkhetade02@gmail.com>
N
Norway-02 committed
ff61b6ea4533b40d8698da609ad5a71cc0c63ad4
Parent: 8c4007e
Committed by GitHub <noreply@github.com> on 8/25/2026, 5:46:24 AM