summaryrefslogtreecommitdiff
path: root/js/fetch_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-25 18:07:26 -0800
committerRyan Dahl <ry@tinyclouds.org>2018-11-27 11:33:23 -0800
commita25497fb66b3bc98caeb92b17bb9ab8754b651c2 (patch)
treedbcecf8433eff5963910dce86e8cfdd6a7e13b61 /js/fetch_test.ts
parent9645249f1f976b8060710db11ce729912093d983 (diff)
Disable flaky fetch tests.
Diffstat (limited to 'js/fetch_test.ts')
-rw-r--r--js/fetch_test.ts21
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);
});
+*/