fix: Fix flakeyness of TestProvisionerd/ReconnectAndComplete (#5169)

This commit is contained in:
Mathias Fredriksson
2022-11-24 14:09:56 +02:00
committed by GitHub
parent 913e461f79
commit 8ff89c4288
+1
View File
@@ -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) })
}()
}