Skip to content

Commit 6b5658b

Browse files
authored
Merge pull request #6 from atlassian/cwood/fail-test-if-no-missing-issues
Make sure the tests fail if we dont find any issues.
2 parents 73eea76 + 6f4f461 commit 6b5658b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

events_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ func TestEventsResource(t *testing.T) {
4747
t.Fatal(err)
4848
}
4949

50+
if len(issues) == 0 {
51+
t.Fatalf("no issues found for project %s", project.Name)
52+
}
53+
5054
t.Run("Read out all events for a issue", func(t *testing.T) {
5155

5256
for _, issue := range issues {

0 commit comments

Comments
 (0)