Skip to content

Commit

Permalink
Merge pull request #307 from buildpacks/fix-launcher-test-flake
Browse files Browse the repository at this point in the history
Fixes flaky launcher test
  • Loading branch information
ekcasey authored May 29, 2020
2 parents 9675f55 + aadbe8f commit b78738f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions acceptance/launcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ func testLauncher(t *testing.T, when spec.G, it spec.S) {
if err != nil {
t.Fatalf("failed to run %v\n OUTPUT: %s\n ERROR: %s\n", cmd.Args, output, err)
}
expected := "SOME_VAR=some-bp-val\nOTHER_VAR=other-bp-val"
if !strings.Contains(string(output), expected) {
t.Fatalf("failed to execute provided CMD:\n\t got: %s\n\t want: %s", output, expected)
if !strings.Contains(string(output), "SOME_VAR=some-bp-val") {
t.Fatalf("failed to execute provided CMD:\n\t got: %s\n\t want: %s", output, "SOME_VAR=some-bp-val")
}
if !strings.Contains(string(output), "OTHER_VAR=other-bp-val") {
t.Fatalf("failed to execute provided CMD:\n\t got: %s\n\t want: %s", output, "OTHER_VAR=other-bp-val")
}
})

Expand Down

0 comments on commit b78738f

Please sign in to comment.