Skip to content

Commit

Permalink
Use test framework to log
Browse files Browse the repository at this point in the history
  • Loading branch information
mxbossard authored Dec 5, 2023
1 parent dc8f848 commit 438e41b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,19 +651,20 @@ func TestWarmerTwice(t *testing.T) {
WarmerImage,
"--cache-dir=/cache",
"-i", "debian:trixie-slim")

warmCmd := exec.Command("docker", dockerRunFlags...)

out, err := RunCommandWithoutTest(warmCmd)
if err != nil {
log.Fatal("Unable to perform first warming: ", err)
t.Fatalf("Unable to perform first warming: %s", err)
}
log.Printf("First warm output: %s", out)
t.Logf("First warm output: %s", out)

warmCmd = exec.Command("docker", dockerRunFlags...)
out, err = RunCommandWithoutTest(warmCmd)
if err != nil {
log.Fatal("Unable to perform second warming: ", err)
t.Fatalf("Unable to perform second warming: %s", err)
}
log.Printf("Second warm output: %s", out)
t.Logf("Second warm output: %s", out)
}

func verifyBuildWith(t *testing.T, cache, dockerfile string) {
Expand Down

0 comments on commit 438e41b

Please sign in to comment.