Increase test timeouts

This commit is contained in:
Arthur Barr
2019-03-05 15:08:07 +00:00
parent d4a81741cc
commit 13f620f21a

View File

@@ -47,7 +47,7 @@ func TestLicenseNotSet(t *testing.T) {
containerConfig := container.Config{} containerConfig := container.Config{}
id := runContainer(t, cli, &containerConfig) id := runContainer(t, cli, &containerConfig)
defer cleanContainer(t, cli, id) defer cleanContainer(t, cli, id)
rc := waitForContainer(t, cli, id, 10*time.Second) rc := waitForContainer(t, cli, id, 20*time.Second)
if rc != 1 { if rc != 1 {
t.Errorf("Expected rc=1, got rc=%v", rc) t.Errorf("Expected rc=1, got rc=%v", rc)
} }
@@ -65,7 +65,7 @@ func TestLicenseView(t *testing.T) {
} }
id := runContainer(t, cli, &containerConfig) id := runContainer(t, cli, &containerConfig)
defer cleanContainer(t, cli, id) defer cleanContainer(t, cli, id)
rc := waitForContainer(t, cli, id, 10*time.Second) rc := waitForContainer(t, cli, id, 20*time.Second)
if rc != 1 { if rc != 1 {
t.Errorf("Expected rc=1, got rc=%v", rc) t.Errorf("Expected rc=1, got rc=%v", rc)
} }
@@ -324,7 +324,7 @@ func TestVolumeRequiresRoot(t *testing.T) {
defer cleanContainer(t, cli, initCtr.ID) defer cleanContainer(t, cli, initCtr.ID)
t.Logf("Init container ID=%v", initCtr.ID) t.Logf("Init container ID=%v", initCtr.ID)
startContainer(t, cli, initCtr.ID) startContainer(t, cli, initCtr.ID)
rc = waitForContainer(t, cli, initCtr.ID, 10*time.Second) rc = waitForContainer(t, cli, initCtr.ID, 20*time.Second)
if rc != 0 { if rc != 0 {
t.Errorf("Expected init container to exit with rc=0, got rc=%v", rc) t.Errorf("Expected init container to exit with rc=0, got rc=%v", rc)
} }
@@ -404,7 +404,7 @@ func TestStartQueueManagerFail(t *testing.T) {
} }
id := runContainer(t, cli, &containerConfig) id := runContainer(t, cli, &containerConfig)
defer cleanContainer(t, cli, id) defer cleanContainer(t, cli, id)
rc := waitForContainer(t, cli, id, 10*time.Second) rc := waitForContainer(t, cli, id, 20*time.Second)
if rc != 1 { if rc != 1 {
t.Errorf("Expected rc=1, got rc=%v", rc) t.Errorf("Expected rc=1, got rc=%v", rc)
} }
@@ -752,7 +752,7 @@ func TestBadLogFormat(t *testing.T) {
} }
id := runContainer(t, cli, &containerConfig) id := runContainer(t, cli, &containerConfig)
defer cleanContainer(t, cli, id) defer cleanContainer(t, cli, id)
rc := waitForContainer(t, cli, id, 5*time.Second) rc := waitForContainer(t, cli, id, 20*time.Second)
if rc != 1 { if rc != 1 {
t.Errorf("Expected rc=1, got rc=%v", rc) t.Errorf("Expected rc=1, got rc=%v", rc)
} }