Skip to content

Commit 089c032

Browse files
committed
Increase shutdown timeout for starters.
This fixes test failures with newer ArangoDB versions (>= 3.4).
1 parent 3ab7e50 commit 089c032

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/process_cluster_upgrade_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@ func testUpgradeProcess(t *testing.T, endpoint string) {
9393
t.Fatalf("Upgrade failed: %s", status.Reason)
9494
}
9595
if status.Ready {
96+
if isVerbose {
97+
t.Logf("UpgradeStatus good: %v", status)
98+
}
9699
break
97100
}
98101
}
99102
if time.Now().After(deadline) {
100-
t.Fatal("Upgrade failed to finished in time")
103+
t.Fatal("Upgrade failed to finish in time")
101104
}
102105
time.Sleep(time.Second)
103106
}

test/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func SendIntrAndWait(t *testing.T, starters ...*SubProcess) bool {
205205
g.Add(1)
206206
go func() {
207207
defer g.Done()
208-
if err := starter.WaitTimeout(time.Second * 30); err != nil {
208+
if err := starter.WaitTimeout(time.Second * 300); err != nil {
209209
result = false
210210
t.Errorf("Starter is not stopped in time: %s", describe(err))
211211
}

0 commit comments

Comments
 (0)