Prechádzať zdrojové kódy

Fix issue within auth test

Guillaume J. Charmes 12 rokov pred
rodič
commit
0146f65a44
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      api_test.go

+ 1 - 1
api_test.go

@@ -56,7 +56,7 @@ func TestGetAuth(t *testing.T) {
 		t.Fatalf("%d OK or 0 expected, received %d\n", http.StatusOK, r.Code)
 		t.Fatalf("%d OK or 0 expected, received %d\n", http.StatusOK, r.Code)
 	}
 	}
 
 
-	newAuthConfig := srv.registry.GetAuthConfig()
+	newAuthConfig := srv.registry.GetAuthConfig(false)
 	if newAuthConfig.Username != authConfig.Username ||
 	if newAuthConfig.Username != authConfig.Username ||
 		newAuthConfig.Email != authConfig.Email {
 		newAuthConfig.Email != authConfig.Email {
 		t.Fatalf("The auth configuration hasn't been set correctly")
 		t.Fatalf("The auth configuration hasn't been set correctly")