Skip to content

Commit 3d178d8

Browse files
committed
fix test cases
1 parent 37740b8 commit 3d178d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/streamable_http_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ func TestStreamableHTTP_POST_SendAndReceive(t *testing.T) {
283283
}
284284
defer resp.Body.Close()
285285

286-
if resp.StatusCode != http.StatusAccepted {
287-
t.Errorf("Expected status 202, got %d", resp.StatusCode)
286+
if resp.StatusCode != http.StatusOK {
287+
t.Errorf("Expected status 200, got %d", resp.StatusCode)
288288
}
289289
if resp.Header.Get("content-type") != "text/event-stream" {
290290
t.Errorf("Expected content-type text/event-stream, got %s", resp.Header.Get("content-type"))

0 commit comments

Comments
 (0)