Skip to content

Commit 6f4f461

Browse files
committed
Make sure the tests fail if we dont find any issues.
1 parent 7ae7f8e commit 6f4f461

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)