Skip to content

Commit

Permalink
fix(fmt): undetected format problem (#385)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune authored Apr 13, 2021
1 parent 760d369 commit 8161d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ func TestEventCommandOpenError(t *testing.T) {

func TestEventCommandListSeverityWithJsonFlag(t *testing.T) {
out, err, exitcode := LaceworkCLIWithTOMLConfig("event", "list", "--severity", "high", "--json")
severities := []string{"\"severity\": 3","\"severity\": 4", "\"severity\": 5"}
severities := []string{"\"severity\": 3", "\"severity\": 4", "\"severity\": 5"}
assert.Empty(t,
err.String(),
"STDERR should be empty")
assert.Equal(t, 0, exitcode,
"EXITCODE is not the expected one")
assert.NotContains(t, severities, out.String(),
"Json output does not adhere to severity filter")
}
}

0 comments on commit 8161d00

Please sign in to comment.