We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a201208 commit 9484580Copy full SHA for 9484580
test/openai/resources/responses/streaming_test.rb
@@ -223,17 +223,17 @@ def test_streaming_error_handling
223
)
224
225
.to_return(
226
- status: 400,
+ status: 200,
227
headers: {"Content-Type" => "text/event-stream"},
228
body: error_sse_response
229
230
231
stream = @client.responses.stream(**basic_params)
232
error = assert_raises(OpenAI::Errors::APIStatusError) do
233
- stream.each { |_event| } # Consume the stream to trigger the error.
+ stream.each {} # Consume the stream to trigger the error.
234
end
235
236
- assert_equal(400, error.status)
+ assert_equal(200, error.status)
237
assert_equal("Invalid request: missing required field", error.message)
238
239
0 commit comments