summaryrefslogtreecommitdiff
path: root/website/app_test.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2018-10-17 01:00:47 +0900
committerRyan Dahl <ry@tinyclouds.org>2018-10-16 12:00:47 -0400
commitd4afbe6ef3206e53e2ddc7f59c6b90bbffcbe988 (patch)
treea6bb14d790c0d7632bf8ba66f43ef4ab3f2ff8aa /website/app_test.js
parenta90cf4c2ee6a98a9f7b2cd58528e94d3f84e1f0d (diff)
improve benchmark page performance and fix test (#1002)
Diffstat (limited to 'website/app_test.js')
-rw-r--r--website/app_test.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/website/app_test.js b/website/app_test.js
index cebf78aeb..5edecc26e 100644
--- a/website/app_test.js
+++ b/website/app_test.js
@@ -1,6 +1,6 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
-import { test, assert, assertEqual } from "../js/test_util.ts";
+import { test, testPerm, assert, assertEqual } from "../js/test_util.ts";
import {
createBinarySizeColumns,
createExecTimeColumns,
@@ -209,11 +209,9 @@ test(function formatSecondsPatterns() {
assertEqual(formatSeconds(10000), "167 min");
});
-test(async function getTravisDataSuccess() {
- try {
- const data = await getTravisData();
- assert(data.length !== 0);
- } catch (e) {
- assert(e !== null);
- }
+testPerm({ net: true }, async function getTravisDataSuccess() {
+ const data = await getTravisData(
+ "http://localhost:4545/tools/testdata/travis_benchmark.json"
+ );
+ assert(data.length !== 0);
});