Skip to content

Commit

Permalink
Fix up some test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Jan 19, 2021
1 parent c455fbe commit f7fa82b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clients/applications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions clients/groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions clients/serviceprincipals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions clients/users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f7fa82b

Please sign in to comment.