Merge pull request #447 from shawnps/master

call Fatal if length of Users() is 0
pull/453/head
shirou 7 years ago committed by GitHub
commit 40b2c667c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save