Skip to content

Commit

Permalink
Verify failure of PipelineRun in TestGitPipelineRunFail
Browse files Browse the repository at this point in the history
`TestGitPipelineRunFail` is test that is meant to verify that code
extraction fails with invalid inputs to the `Git` `PipelineResource`.

However, the test does not fail if the `PipelineRun` does not succeed.

In this change, we ensure that the `PipelineRun` fails in these
circumstances.
  • Loading branch information
savitaashture authored and tekton-robot committed Oct 12, 2021
1 parent 70a7b8d commit 4391679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/git_checkout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ func TestGitPipelineRunFail(t *testing.T) {
}
}
}
} else {
t.Fatal("PipelineRun succeeded when should have failed")
}
})
}
Expand Down

0 comments on commit 4391679

Please sign in to comment.