Browse Source

skip server timeout test (unreliable, slow)

sschmid 4 years ago
parent
commit
c72de8e57b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      test/Common/OSMD/OSMD_Test.ts

+ 5 - 1
test/Common/OSMD/OSMD_Test.ts

@@ -141,7 +141,11 @@ describe("OpenSheetMusicDisplay Main Export", () => {
         );
     });
 
-    it("Timeout from server", (done: MochaDone) => {
+    it.skip("Timeout from server", (done: MochaDone) => {
+        // TODO this test times out from time to time, even with osmd.loadUrlTimeout set to 5000.
+        //   the test is unreliable, which makes it hard to test.
+        //   also, it's better not to use OSMD to fetch one's score anyways.
+        //   also, the timeout adds unnecessary time to the testing suite.
         const score: string = "https://httpstat.us/408";
         const div: HTMLElement = TestUtils.getDivElement(document);
         const opensheetmusicdisplay: OpenSheetMusicDisplay = TestUtils.createOpenSheetMusicDisplay(div);