Skip to content

Commit

Permalink
implement suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Jan 2, 2025
1 parent 041d3f5 commit 0e3b9aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev-tools/packaging/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,23 +600,23 @@ func checkDockerImageRun(t *testing.T, p *packageFile, imagePath string) {
for {
select {
case <-timer.C:
t.Fatalf("logs:\n%s\nnever saw %q within timeout", string(logs), sentinelLog)
goto done
t.Fatalf("never saw %q within timeout\nlogs:\n%s", sentinelLog, string(logs))
return
case <-ticker.C:
out, err := c.ContainerLogs(ctx, createResp.ID, container.LogsOptions{ShowStdout: true, ShowStderr: true})
if err != nil {
t.Logf("could not get logs: %s", err)
}
logs, err = io.ReadAll(out)
out.Close()
if err != nil {
t.Logf("error reading logs: %s", err)
}
if bytes.Contains(logs, []byte(sentinelLog)) {
goto done
return
}
}
}
done:
})
}

Expand Down

0 comments on commit 0e3b9aa

Please sign in to comment.