diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 1eeb3c8ad6..962003f06c 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -803,6 +803,17 @@ async function main() { "Smoke test failed: expected no content-range on wildcard conditional ranged response.", ); } + const mismatchConditionalRangedAsset = await fetch(assetUrl, { + headers: { + Range: `bytes=0-${rangeEnd}`, + "If-None-Match": "\"definitely-different-etag\"", + }, + }); + if (mismatchConditionalRangedAsset.status !== 206) { + throw new Error( + `Smoke test failed: expected mismatched conditional ranged asset status 206, received ${mismatchConditionalRangedAsset.status}.`, + ); + } const ifRangeEtagAsset = await fetch(assetUrl, { headers: { Range: `bytes=0-${rangeEnd}`,