Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvio Fragata da Silva committed Mar 13, 2024
1 parent 4dbed23 commit 5225d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/plex_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func TestGivenServerErrorWhenSendResquestThenReturnError(test *testing.T) {
test.Error("Should throw error")
}
errorMsg := fmt.Sprintf("%v", err)
if !strings.Contains(errorMsg, "Error: status code 500 from server") {
if !strings.Contains(errorMsg, "error: status code 500 from server") {
test.Errorf("Error, it should contains expected: 'Error: status code 500 from server', actual: '%v'", err)
}
}
Expand All @@ -103,7 +103,7 @@ func TestGivenInvalidJsonResponseWhenSendRequestThenReturnError(test *testing.T)
test.Errorf("Error: %v", err)
}
errorToString := fmt.Sprintf("%v", err)
if !strings.Contains(errorToString, "Invalid JSON") {
if !strings.Contains(errorToString, "invalid JSON") {
test.Errorf("\nShould contain: %s\nActual: %s", "Invalid JSON", errorToString)
}

Expand Down

0 comments on commit 5225d97

Please sign in to comment.