mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Shorten test time
This commit is contained in:
parent
a42c066af7
commit
212ce7c287
@ -351,14 +351,13 @@ func TestRestart(t *testing.T) {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
|
||||
for i := 0; i != 5; i++ {
|
||||
for i := 0; i != 3; i++ {
|
||||
select {
|
||||
case <-time.After(dbusReconnectPeriod * 5):
|
||||
t.Fatal("wait dbus connect timeout")
|
||||
case <-connChan:
|
||||
}
|
||||
|
||||
time.Sleep(dbusReconnectPeriod)
|
||||
shutdownChanMut.Lock()
|
||||
close(shutdownChan)
|
||||
shutdownChanMut.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user