Skip to content

Commit

Permalink
better way to skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
argouber committed Oct 11, 2019
1 parent c4735d1 commit 61edbd3
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/bootstrap_test.go
Expand Up @@ -66,14 +66,15 @@ func TestBootstrapError(t *testing.T) {
}
}

// TODO(argo): Let us redo this test later
// func TestBootstrapWithBadLogLevel(t *testing.T) {
// gateway, err := testGateway.CreateGateway(t, map[string]interface{}{
// "logger.level": "invalid",
// }, &testGateway.Options{
// TestBinary: util.DefaultMainFile("example-gateway"),
// ConfigFiles: util.DefaultConfigFiles("example-gateway"),
// })
// assert.Error(t, err, "got bootstrap err")
// assert.Nil(t, gateway)
//}
// TODO(argo): Let us redo this test to actually verify other invalid keys in config
func TestBootstrapWithBadLogLevel(t *testing.T) {
t.Skip("Skip for now to redo test to be more inclusive of other bad config keys")
gateway, err := testGateway.CreateGateway(t, map[string]interface{}{
"logger.level": "invalid",
}, &testGateway.Options{
TestBinary: util.DefaultMainFile("example-gateway"),
ConfigFiles: util.DefaultConfigFiles("example-gateway"),
})
assert.Error(t, err, "got bootstrap err")
assert.Nil(t, gateway)
}

0 comments on commit 61edbd3

Please sign in to comment.