diff --git a/js/fetch_test.ts b/js/fetch_test.ts index e488e97e26..74a3836496 100644 --- a/js/fetch_test.ts +++ b/js/fetch_test.ts @@ -47,6 +47,26 @@ testPerm({ net: true }, async function responseClone() { } }); +// TODO(ry) The following tests work but are flaky. There's a race condition +// somewhere. Here is what one of these flaky failures looks like: +// +// test fetchPostBodyString_permW0N1E0R0 +// assertEqual failed. actual = expected = POST /blah HTTP/1.1 +// hello: World +// foo: Bar +// host: 127.0.0.1:4502 +// content-length: 11 +// hello world +// Error: actual: expected: POST /blah HTTP/1.1 +// hello: World +// foo: Bar +// host: 127.0.0.1:4502 +// content-length: 11 +// hello world +// at Object.assertEqual (file:///C:/deno/js/testing/util.ts:29:11) +// at fetchPostBodyString (file + +/* function bufferServer(addr: string): deno.Buffer { const listener = deno.listen("tcp", addr); const buf = new deno.Buffer(); @@ -138,3 +158,4 @@ testPerm({ net: true }, async function fetchPostBodyTypedArray() { ].join(""); assertEqual(actual, expected); }); +*/