Skip to content

Commit

Permalink
Include logs in test failure when TUF autoupdater doesn't shut down o…
Browse files Browse the repository at this point in the history
…r restart within 5 seconds
  • Loading branch information
RebeccaMahany committed Nov 13, 2023
1 parent acc13e4 commit b1dfe6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/autoupdate/tuf/autoupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestExecute_launcherUpdate(t *testing.T) {
shutdownDeadline := time.Now().Add(5 * time.Second).Unix()
for {
if time.Now().Unix() > shutdownDeadline {
t.Error("autoupdater did not shut down within 5 seconds")
t.Error("autoupdater did not shut down within 5 seconds -- logs: ", logBytes.String())
t.FailNow()
}

Expand Down Expand Up @@ -341,7 +341,7 @@ func TestExecute_downgrade(t *testing.T) {
shutdownDeadline := time.Now().Add(5 * time.Second).Unix()
for {
if time.Now().Unix() > shutdownDeadline {
t.Error("autoupdater did not restart osquery within 5 seconds")
t.Error("autoupdater did not restart osquery within 5 seconds -- logs: ", logBytes.String())
t.FailNow()
}

Expand Down

0 comments on commit b1dfe6f

Please sign in to comment.