From f7fa82b7694a59a2b65bc67cb520b9272b17e378 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Tue, 19 Jan 2021 00:44:55 +0000 Subject: [PATCH] Fix up some test messages --- clients/applications_test.go | 4 ++-- clients/groups_test.go | 4 ++-- clients/serviceprincipals_test.go | 4 ++-- clients/users_test.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clients/applications_test.go b/clients/applications_test.go index 324cd1d9..e1f2db7e 100644 --- a/clients/applications_test.go +++ b/clients/applications_test.go @@ -79,10 +79,10 @@ func testApplicationsClient_List(t *testing.T, c ApplicationsClientTest) (applic func testApplicationsClient_Get(t *testing.T, c ApplicationsClientTest, id string) (application *models.Application) { application, status, err := c.client.Get(c.connection.Context, id) if err != nil { - t.Fatalf("ApplicationsClient.Delete(): %v", err) + t.Fatalf("ApplicationsClient.Get(): %v", err) } if status < 200 || status >= 300 { - t.Fatalf("ApplicationsClient.Delete(): invalid status: %d", status) + t.Fatalf("ApplicationsClient.Get(): invalid status: %d", status) } if application == nil { t.Fatal("ApplicationsClient.Get(): application was nil") diff --git a/clients/groups_test.go b/clients/groups_test.go index 51e1a35b..862bd85d 100644 --- a/clients/groups_test.go +++ b/clients/groups_test.go @@ -123,10 +123,10 @@ func testGroupsClient_List(t *testing.T, c GroupsClientTest) (groups *[]models.G func testGroupsClient_Get(t *testing.T, c GroupsClientTest, id string) (group *models.Group) { group, status, err := c.client.Get(c.connection.Context, id) if err != nil { - t.Fatalf("GroupsClient.Delete(): %v", err) + t.Fatalf("GroupsClient.Get(): %v", err) } if status < 200 || status >= 300 { - t.Fatalf("GroupsClient.Delete(): invalid status: %d", status) + t.Fatalf("GroupsClient.Get(): invalid status: %d", status) } if group == nil { t.Fatal("GroupsClient.Get(): group was nil") diff --git a/clients/serviceprincipals_test.go b/clients/serviceprincipals_test.go index c674cad6..accc364b 100644 --- a/clients/serviceprincipals_test.go +++ b/clients/serviceprincipals_test.go @@ -90,10 +90,10 @@ func testServicePrincipalsClient_List(t *testing.T, c ServicePrincipalsClientTes func testServicePrincipalsClient_Get(t *testing.T, c ServicePrincipalsClientTest, id string) (servicePrincipal *models.ServicePrincipal) { servicePrincipal, status, err := c.client.Get(c.connection.Context, id) if err != nil { - t.Fatalf("ServicePrincipalsClient.Delete(): %v", err) + t.Fatalf("ServicePrincipalsClient.Get(): %v", err) } if status < 200 || status >= 300 { - t.Fatalf("ServicePrincipalsClient.Delete(): invalid status: %d", status) + t.Fatalf("ServicePrincipalsClient.Get(): invalid status: %d", status) } if servicePrincipal == nil { t.Fatal("ServicePrincipalsClient.Get(): servicePrincipal was nil") diff --git a/clients/users_test.go b/clients/users_test.go index 82f35e27..23943c24 100644 --- a/clients/users_test.go +++ b/clients/users_test.go @@ -80,10 +80,10 @@ func testUsersClient_List(t *testing.T, c UsersClientTest) (users *[]models.User func testUsersClient_Get(t *testing.T, c UsersClientTest, id string) (user *models.User) { user, status, err := c.client.Get(c.connection.Context, id) if err != nil { - t.Fatalf("UsersClient.Delete(): %v", err) + t.Fatalf("UsersClient.Get(): %v", err) } if status < 200 || status >= 300 { - t.Fatalf("UsersClient.Delete(): invalid status: %d", status) + t.Fatalf("UsersClient.Get(): invalid status: %d", status) } if user == nil { t.Fatal("UsersClient.Get(): user was nil")