Skip to content

Commit 83b1b01

Browse files
committed
test: expand timing and debugging for overlap test
attempt #9000
1 parent aa9790c commit 83b1b01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/overlap/overlap_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,13 @@ func TestOverlap(t *testing.T) {
106106

107107
// Assert replacement job unblocked and running
108108
testutil.Wait(t, func() (bool, error) {
109+
time.Sleep(time.Second)
110+
109111
a, _, err := nomadClient.Jobs().Allocations(jobID2, false, nil)
110112
must.NoError(t, err)
111113
if n := len(a); n == 0 {
112-
return false, fmt.Errorf("timed out before an allocation was found for %s", jobID2)
114+
evalOut := e2eutil.DumpEvals(nomadClient, jobID2)
115+
return false, fmt.Errorf("timed out before an allocation was found for %s; Evals:\n%s", jobID2, evalOut)
113116
}
114117
must.Len(t, 1, a)
115118

0 commit comments

Comments
 (0)