Skip to content

Commit

Permalink
code review: improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Apr 12, 2023
1 parent d2789cf commit e04eca8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/backend/aio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func TestBackEnd_ListAioControllers(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/backend/null_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func TestBackEnd_ListNullDebugs(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/backend/nvme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func TestBackEnd_ListNVMfRemoteControllers(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/frontend/blk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func TestFrontEnd_ListVirtioBlks(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/frontend/nvme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func TestFrontEnd_ListNVMeSubsystem(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down Expand Up @@ -1365,7 +1365,7 @@ func TestFrontEnd_ListNVMeNamespaces(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/middleend/middleend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func TestMiddleEnd_ListEncryptedVolumes(t *testing.T) {
}
// Empty NextPageToken indicates end of results list
if tt.size != 1 && response.NextPageToken != "" {
t.Error("response: expected", tt, "received", response)
t.Error("Expected end of results, receieved non-empty next page token", response.NextPageToken)
}
}

Expand Down

0 comments on commit e04eca8

Please sign in to comment.