Skip to content

Commit

Permalink
test: expand timing and debugging for overlap test (#14920)
Browse files Browse the repository at this point in the history
attempt #9000
  • Loading branch information
schmichael committed Oct 18, 2022
1 parent c9bd653 commit 7b360de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/overlap/overlap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,13 @@ func TestOverlap(t *testing.T) {

// Assert replacement job unblocked and running
testutil.Wait(t, func() (bool, error) {
time.Sleep(time.Second)

a, _, err := nomadClient.Jobs().Allocations(jobID2, false, nil)
must.NoError(t, err)
if n := len(a); n == 0 {
return false, fmt.Errorf("timed out before an allocation was found for %s", jobID2)
evalOut := e2eutil.DumpEvals(nomadClient, jobID2)
return false, fmt.Errorf("timed out before an allocation was found for %s; Evals:\n%s", jobID2, evalOut)
}
must.Len(t, 1, a)

Expand Down

0 comments on commit 7b360de

Please sign in to comment.