diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-25 18:07:26 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-27 11:33:23 -0800 |
commit | a25497fb66b3bc98caeb92b17bb9ab8754b651c2 (patch) | |
tree | dbcecf8433eff5963910dce86e8cfdd6a7e13b61 /js/fetch_test.ts | |
parent | 9645249f1f976b8060710db11ce729912093d983 (diff) |
Disable flaky fetch tests.
Diffstat (limited to 'js/fetch_test.ts')
-rw-r--r-- | js/fetch_test.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/fetch_test.ts b/js/fetch_test.ts index e488e97e2..74a383649 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); }); +*/ |