Skip to content

Commit

Permalink
call Fatal if length of Users() is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnps-sigsci committed Nov 8, 2017
1 parent 48fc561 commit befc2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestUsers(t *testing.T) {
}
empty := UserStat{}
if len(v) == 0 {
t.Errorf("Users is empty")
t.Fatal("Users is empty")
}
for _, u := range v {
if u == empty {
Expand Down

0 comments on commit befc2c3

Please sign in to comment.