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 5c514b8 commit edd2ed4Copy full SHA for edd2ed4
integration-tests/js-compute/compare-downstream-response.js
@@ -15,6 +15,10 @@ import compareHeaders from './compare-headers.js';
15
export async function compareDownstreamResponse (configResponse, actualResponse) {
16
// Status
17
if (configResponse.status != actualResponse.statusCode) {
18
+ try {
19
+ let downstreamBodyText = await actualResponse.body.text();
20
+ console.error({downstreamBodyText})
21
+ } catch { /* empty */ }
22
throw new Error(`[DownstreamResponse: Status mismatch] Expected: ${configResponse.status} - Got: ${actualResponse.status}`);
23
}
24
0 commit comments