Skip to content

Commit

Permalink
fix expected error message (sashabaranov#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashabaranov authored Apr 30, 2023
1 parent 67aef19 commit af9ff51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestHandleErrorResp(t *testing.T) {
}
}`,
)),
expected: "error, Access denied due to Virtual Network/Firewall rules.",
expected: "error, status code 401, message: Access denied due to Virtual Network/Firewall rules.",
},
{
name: "503 Model Overloaded",
Expand All @@ -130,6 +130,7 @@ func TestHandleErrorResp(t *testing.T) {
testCase.StatusCode = tc.httpCode
testCase.Body = io.NopCloser(tc.body)
err := client.handleErrorResp(testCase)
t.Log(err.Error())
if err.Error() != tc.expected {
t.Errorf("Unexpected error: %v , expected: %s", err, tc.expected)
t.Fail()
Expand Down

0 comments on commit af9ff51

Please sign in to comment.