From a25497fb66b3bc98caeb92b17bb9ab8754b651c2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 25 Nov 2018 18:07:26 -0800 Subject: [PATCH] Disable flaky fetch tests. --- js/fetch_test.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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); }); +*/