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
```
release-2.3
Yicheng Qin 2015-10-28 12:03:13 -07:00
parent 099d8674c4
commit 7d757bbc8a
1 changed files with 2 additions and 1 deletions

View File

@ -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()