From f151f67c45a3c9804b653405ab4cfb69afad9d44 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Tue, 9 Jan 2018 16:01:48 -0600 Subject: [PATCH] Use rawgit to serve petstore.json spec --- test/e2e/cbt-globals.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/cbt-globals.js b/test/e2e/cbt-globals.js index 2bf2b28f..dccbd072 100644 --- a/test/e2e/cbt-globals.js +++ b/test/e2e/cbt-globals.js @@ -4,7 +4,11 @@ var cbt = require("cbt_tunnels") module.exports = { baseAppUrl: "http://swagger-ui-ci-asset-deployment-test.surge.sh", - specPath: "http://local:3204/petstore.json", + + // use rawgit.com to get test/e2e/specs/petstore.json from master + // not a great solution, but CBT's proxy is too slow to fetch + // the data directly. + specPath: "https://rawgit.com/swagger-api/swagger-ui/master/test/e2e/specs/petstore.json", visibleTimeout: 10000, beforeEach: function(done) {