@@ -229,11 +229,11 @@ func TestAddLdapBindDn(t *testing.T) {
229229 return nil
230230 },
231231 updateAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
232- assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
232+ assert .FailNow (t , "updateAuthSource called" , " case %d: should not call updateAuthSource" , n )
233233 return nil
234234 },
235235 getAuthSourceByID : func (ctx context.Context , id int64 ) (* auth.Source , error ) {
236- assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
236+ assert .FailNow (t , "getAuthSourceByID called" , " case %d: should not call getAuthSourceByID" , n )
237237 return nil , nil
238238 },
239239 }
@@ -460,11 +460,11 @@ func TestAddLdapSimpleAuth(t *testing.T) {
460460 return nil
461461 },
462462 updateAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
463- assert .FailNow (t , "case %d: should not call updateAuthSource" , n )
463+ assert .FailNow (t , "updateAuthSource called" , " case %d: should not call updateAuthSource" , n )
464464 return nil
465465 },
466466 getAuthSourceByID : func (ctx context.Context , id int64 ) (* auth.Source , error ) {
467- assert .FailNow (t , "case %d: should not call getAuthSourceByID" , n )
467+ assert .FailNow (t , "getAuthSourceById called" , " case %d: should not call getAuthSourceByID" , n )
468468 return nil , nil
469469 },
470470 }
@@ -925,7 +925,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
925925 return nil
926926 },
927927 createAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
928- assert .FailNow (t , "case %d: should not call createAuthSource" , n )
928+ assert .FailNow (t , "createAuthSource called" , " case %d: should not call createAuthSource" , n )
929929 return nil
930930 },
931931 updateAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
@@ -1315,7 +1315,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
13151315 return nil
13161316 },
13171317 createAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
1318- assert .FailNow (t , "case %d: should not call createAuthSource" , n )
1318+ assert .FailNow (t , "createAuthSource called" , " case %d: should not call createAuthSource" , n )
13191319 return nil
13201320 },
13211321 updateAuthSource : func (ctx context.Context , authSource * auth.Source ) error {
0 commit comments