mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix flaky TestCacheResolutionTimeout
Increase timeout to prevent the entry from being found when there is delay on the address resolution goroutine that doesn't mark the request as failed. PiperOrigin-RevId: 220504789 Change-Id: I7e44fd95d8624bd69962f862fbf5517a81395f2a
This commit is contained in:
committed by
Shentubot
parent
4af791f87c
commit
dce61075c0
@@ -237,8 +237,8 @@ func TestCacheResolutionFailed(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCacheResolutionTimeout(t *testing.T) {
|
||||
resolverDelay := 50 * time.Millisecond
|
||||
expiration := resolverDelay / 2
|
||||
resolverDelay := 500 * time.Millisecond
|
||||
expiration := resolverDelay / 10
|
||||
c := newLinkAddrCache(expiration, 1*time.Millisecond, 3)
|
||||
linkRes := &testLinkAddressResolver{cache: c, delay: resolverDelay}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user