Skip to content

Commit

Permalink
added comment to test
Browse files Browse the repository at this point in the history
  • Loading branch information
dubsec committed Jan 29, 2021
1 parent a3a1f13 commit 30dfe6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func TestMainApp(t *testing.T) {
}

func TestMainWithoutWebhook(t *testing.T) {

// This is a hack in order to test the application without
// failing the test when e.g. os.Exit(1) is executed.
// By doing this I have complete control over the exit status code.
if os.Getenv("EXEC") != "" {

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 30dfe6a

Please sign in to comment.