Skip to content

Commit

Permalink
Print logs when flaky autoupdate test fails (kolide#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Jan 21, 2025
1 parent 4bab1e1 commit cdb1b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tuf/autoupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func TestExecute_osquerydUpdate(t *testing.T) {
require.GreaterOrEqual(t, len(logLines), 1)

// Check that we restarted osqueryd
require.Contains(t, logLines[len(logLines)-1], "restarted binary after update")
require.Contains(t, logLines[len(logLines)-1], "restarted binary after update", fmt.Sprintf("logs missing restart: %s", strings.Join(logLines, "\n")))

// The autoupdater won't stop after an osqueryd download, so interrupt it and let it shut down
autoupdater.Interrupt(errors.New("test error"))
Expand Down

0 comments on commit cdb1b5a

Please sign in to comment.