Fixing api test cases. (#201)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-07-16 10:54:24 -07:00
1 parent 4dfc41514b
commit 5826bf42fd
5 files changed
+13 -13

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ import (
func TestUsers_List(t *testing.T) {
assert := assert.New(t)
tc := controller.NewTestController(t, nil)
tc := controller.NewTestController(t, &controller.TestControllerOpts{DisableAuthorizationFailures: true})
defer tc.Shutdown()
client := tc.Client()
@@ -73,7 +73,7 @@ func comparableSlice(in []*users.User) []users.User {
}
func TestUser_Crud(t *testing.T) {
tc := controller.NewTestController(t, nil)
tc := controller.NewTestController(t, &controller.TestControllerOpts{DisableAuthorizationFailures: true})
defer tc.Shutdown()
client := tc.Client()
@@ -124,7 +124,7 @@ func TestUser_Crud(t *testing.T) {
func TestUser_Errors(t *testing.T) {
assert := assert.New(t)
tc := controller.NewTestController(t, nil)
tc := controller.NewTestController(t, &controller.TestControllerOpts{DisableAuthorizationFailures: true})
defer tc.Shutdown()
ctx := tc.Context()