http-response-code.any.js (625B)
1 // META: global=window,worker 2 // META: script=../resources/utils.js 3 // META: script=/common/utils.js 4 // META: script=/common/get-host-info.sub.js 5 6 promise_test(async (test) => { 7 const resp = await fetch( 8 "/fetch/connection-pool/resources/network-partition-key.py?" 9 + `status=425&uuid=${token()}&partition_id=${get_host_info().ORIGIN}` 10 + `&dispatch=check_partition&addcounter=true`); 11 assert_equals(resp.status, 425); 12 const text = await resp.text(); 13 assert_equals(text, "ok. Request was sent 1 times. 1 connections were created."); 14 }, "Fetch on 425 response should not be retried for non TLS early data.");