diff options
-rw-r--r-- | cli/tests/unit/flash_test.ts | 1 | ||||
-rw-r--r-- | cli/tests/unit/spawn_test.ts | 7 | ||||
-rw-r--r-- | ext/flash/01_http.js | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/cli/tests/unit/flash_test.ts b/cli/tests/unit/flash_test.ts index 89e91fd7a..07be6dfcc 100644 --- a/cli/tests/unit/flash_test.ts +++ b/cli/tests/unit/flash_test.ts @@ -1844,6 +1844,7 @@ Deno.test( const msg = decoder.decode(buf.subarray(0, readResult)); assert(msg.startsWith("HTTP/1.1 304 Not Modified")); + assert(msg.endsWith("\r\n\r\n")); conn.close(); diff --git a/cli/tests/unit/spawn_test.ts b/cli/tests/unit/spawn_test.ts index 51664e3d1..df95e333b 100644 --- a/cli/tests/unit/spawn_test.ts +++ b/cli/tests/unit/spawn_test.ts @@ -714,7 +714,12 @@ Deno.test(function spawnSyncStdinPipedFails() { }); Deno.test( - { permissions: { write: true, run: true, read: true } }, + // TODO(bartlomieju): this test became flaky on Windows CI + // raising "PermissionDenied" instead of "NotFound". + { + ignore: Deno.build.os === "windows", + permissions: { write: true, run: true, read: true }, + }, async function spawnChildUnref() { const enc = new TextEncoder(); const cwd = await Deno.makeTempDir({ prefix: "deno_command_test" }); diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index 962b22729..4867da161 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -140,7 +140,7 @@ // MUST NOT generate a payload in a 205 response. // indicate a zero-length body for the response by // including a Content-Length header field with a value of 0. - str += "Content-Length: 0\r\n"; + str += "Content-Length: 0\r\n\r\n"; return str; } |