Skip to content

Commit

Permalink
Add timestamp to test failure message to contextualize runner logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 26, 2024
1 parent 11c4335 commit b6a508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/osquery/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func waitHealthy(t *testing.T, runner *Runner, logBytes *threadsafebuffer.Thread

// Good to go
return nil
}, 30*time.Second, 1*time.Second), fmt.Sprintf("runner logs: %s", logBytes.String()))
}, 30*time.Second, 1*time.Second), fmt.Sprintf("instance not healthy by %s: runner logs: %s", time.Now().String(), logBytes.String()))

// Give the instance just a little bit of buffer before we proceed
time.Sleep(2 * time.Second)
Expand Down

0 comments on commit b6a508c

Please sign in to comment.