mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-04 10:28:10 +02:00
add more time
This commit is contained in:
parent
328d2d500b
commit
1b033471a6
2 changed files with 4 additions and 4 deletions
|
@ -49,6 +49,6 @@ func TestLayeredConfig(t *testing.T) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return cfg.Options.GetDeriveInternalDomain() == "b.com"
|
return cfg.Options.GetDeriveInternalDomain() == "b.com"
|
||||||
}, time.Millisecond*100, time.Millisecond)
|
}, time.Second, time.Millisecond)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,9 @@ func TestTarget(t *testing.T) {
|
||||||
shouldBe := func(i1, i2, i3 int64) {
|
shouldBe := func(i1, i2, i3 int64) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
assert.Eventually(t, func() bool { return calls1.Load() == i1 }, time.Millisecond*10, time.Microsecond*100)
|
assert.Eventually(t, func() bool { return calls1.Load() == i1 }, time.Second, time.Millisecond)
|
||||||
assert.Eventually(t, func() bool { return calls2.Load() == i2 }, time.Millisecond*10, time.Microsecond*100)
|
assert.Eventually(t, func() bool { return calls2.Load() == i2 }, time.Second, time.Millisecond)
|
||||||
assert.Eventually(t, func() bool { return calls3.Load() == i3 }, time.Millisecond*10, time.Microsecond*100)
|
assert.Eventually(t, func() bool { return calls3.Load() == i3 }, time.Second, time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
target.Dispatch(context.Background(), 1)
|
target.Dispatch(context.Background(), 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue