mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Fix flakeyness of TestProvisionerd/ReconnectAndComplete (#5169)
This commit is contained in:
@@ -918,6 +918,7 @@ func TestProvisionerd(t *testing.T) {
|
||||
<-failChan
|
||||
_ = client.DRPCConn().Close()
|
||||
second.Store(true)
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
failedOnce.Do(func() { close(failedChan) })
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user