diff options
Diffstat (limited to 'models/org_test.go')
-rw-r--r-- | models/org_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org_test.go b/models/org_test.go index 95698a58e9..801088c2e2 100644 --- a/models/org_test.go +++ b/models/org_test.go @@ -222,10 +222,10 @@ func TestGetOrgByName(t *testing.T) { assert.Equal(t, "user3", org.Name) org, err = GetOrgByName("user2") // user2 is an individual - assert.Equal(t, ErrOrgNotExist, err) + assert.True(t, IsErrOrgNotExist(err)) org, err = GetOrgByName("") // corner case - assert.Equal(t, ErrOrgNotExist, err) + assert.True(t, IsErrOrgNotExist(err)) } func TestCountOrganizations(t *testing.T) { |