From 9c1ab5a63933a743a2da6697ee55eb4ae89c8517 Mon Sep 17 00:00:00 2001
From: Khafra <maitken033380023@gmail.com>
Date: Fri, 10 Nov 2023 04:14:16 -0500
Subject: [PATCH] add additional http2 test with fetch (#2419)

---
 test/fetch/http2.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/fetch/http2.js b/test/fetch/http2.js
index 32fb33e14eb..83860c8fefb 100644
--- a/test/fetch/http2.js
+++ b/test/fetch/http2.js
@@ -84,7 +84,7 @@ test('[Fetch] Simple GET with h2', async t => {
     stream.end(expectedRequestBody)
   })
 
-  t.plan(3)
+  t.plan(4)
 
   server.listen()
   await once(server, 'listening')
@@ -117,6 +117,9 @@ test('[Fetch] Simple GET with h2', async t => {
   t.equal(responseBody, expectedRequestBody)
   t.equal(response.headers.get('x-method'), 'GET')
   t.equal(response.headers.get('x-custom-h2'), 'foo')
+
+  // See https://fetch.spec.whatwg.org/#concept-response-status-message
+  t.equal(response.statusText, '')
 })
 
 test('[Fetch] Should handle h2 request with body (string or buffer)', async t => {