Skip to content

Commit

Permalink
improve test to check newly introduced status code on error exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Nov 12, 2024
1 parent 2e62342 commit 52c4ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Transporters/HttpTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
expect($e->getMessage())->toBe('Incorrect API key provided: foo. You can find your API key at https://platform.openai.com.')
->and($e->getErrorMessage())->toBe('Incorrect API key provided: foo. You can find your API key at https://platform.openai.com.')
->and($e->getErrorCode())->toBe('invalid_api_key')
->and($e->getErrorType())->toBe('invalid_request_error');
->and($e->getErrorType())->toBe('invalid_request_error')
->and($e->getStatusCode())->toBe(401);
});
});

Expand Down

0 comments on commit 52c4ced

Please sign in to comment.