Skip to content

Commit

Permalink
test should print error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Jan 27, 2024
1 parent 88ec1f5 commit faa5071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/experiment/remote/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ func TestClient_FetchRetryWithDifferentResponseCodes(t *testing.T) {
fmt.Printf("%d %s\n", data.responseCode, data.errorMessage)

// Perform the fetch and catch the exception
client.Fetch(&experiment.User{UserId: "test_user"})
_, err := client.Fetch(&experiment.User{UserId: "test_user"})
if err != nil {
fmt.Println(err.Error())
}

// Close the server
server.Close()
Expand Down

0 comments on commit faa5071

Please sign in to comment.