Skip to content

Commit 9484580

Browse files
ms-jpqstainless-app[bot]
authored andcommitted
fix(internal): oops had a bad test merge in (#824)
1 parent a201208 commit 9484580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/openai/resources/responses/streaming_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,17 @@ def test_streaming_error_handling
223223
)
224224
)
225225
.to_return(
226-
status: 400,
226+
status: 200,
227227
headers: {"Content-Type" => "text/event-stream"},
228228
body: error_sse_response
229229
)
230230

231231
stream = @client.responses.stream(**basic_params)
232232
error = assert_raises(OpenAI::Errors::APIStatusError) do
233-
stream.each { |_event| } # Consume the stream to trigger the error.
233+
stream.each {} # Consume the stream to trigger the error.
234234
end
235235

236-
assert_equal(400, error.status)
236+
assert_equal(200, error.status)
237237
assert_equal("Invalid request: missing required field", error.message)
238238
end
239239

0 commit comments

Comments
 (0)