Skip to content

Commit

Permalink
Panicking to guard against unexpected environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Filho committed Oct 25, 2023
1 parent e33f24a commit 66ade3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/leveltriggered/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ func TestReconcile(t *testing.T) {
setAppRevision(ctx, g, stagingApp, prom.Version)
case "prod":
setAppRevision(ctx, g, prodApp, prom.Version)
default:
panic("Unexpected environment. Make sure to setup the pipeline properly in the test.")
}
})

Expand Down

0 comments on commit 66ade3c

Please sign in to comment.