Skip to content

Commit 99ccc6e

Browse files
fix: improve variable naming for clarity in streamable_http_test
Signed-off-by: Matthis Holleville <[email protected]>
1 parent 660ac1a commit 99ccc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/transport/streamable_http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func TestStreamableHTTP(t *testing.T) {
264264
t.Fatalf("Failed to unmarshal result: %v", err)
265265
}
266266

267-
if hdr, ok := result["X-Test-Header"].([]any); !ok || len(hdr) == 0 || hdr[0] != "test-header-value" {
267+
if headerValues, ok := result["X-Test-Header"].([]any); !ok || len(headerValues) == 0 || headerValues[0] != "test-header-value" {
268268
t.Errorf("Expected X-Test-Header to be ['test-header-value'], got %v", result["X-Test-Header"])
269269
}
270270
})

0 commit comments

Comments
 (0)