Skip to content

Commit af9ff51

Browse files
authored
fix expected error message (#289)
1 parent 67aef19 commit af9ff51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func TestHandleErrorResp(t *testing.T) {
106106
}
107107
}`,
108108
)),
109-
expected: "error, Access denied due to Virtual Network/Firewall rules.",
109+
expected: "error, status code 401, message: Access denied due to Virtual Network/Firewall rules.",
110110
},
111111
{
112112
name: "503 Model Overloaded",
@@ -130,6 +130,7 @@ func TestHandleErrorResp(t *testing.T) {
130130
testCase.StatusCode = tc.httpCode
131131
testCase.Body = io.NopCloser(tc.body)
132132
err := client.handleErrorResp(testCase)
133+
t.Log(err.Error())
133134
if err.Error() != tc.expected {
134135
t.Errorf("Unexpected error: %v , expected: %s", err, tc.expected)
135136
t.Fail()

0 commit comments

Comments
 (0)