mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: extend wait timeout in TestPublishRetry
It fixes the failure in semaphore CI: ``` --- FAIL: TestPublishRetry (0.00s) server_test.go:1108: len(action) = 1, want >= 2 ```
This commit is contained in:
@@ -1099,7 +1099,8 @@ func TestPublishRetry(t *testing.T) {
|
||||
done: make(chan struct{}),
|
||||
reqIDGen: idutil.NewGenerator(0, time.Time{}),
|
||||
}
|
||||
time.AfterFunc(500*time.Microsecond, func() { close(srv.done) })
|
||||
// TODO: use fakeClockwork
|
||||
time.AfterFunc(10*time.Millisecond, func() { close(srv.done) })
|
||||
srv.publish(10 * time.Nanosecond)
|
||||
|
||||
action := n.Action()
|
||||
|
||||
Reference in New Issue
Block a user