Kaynağa Gözat

test: fix OSMD_Test fail (not enough cursor.next calls)

sschmidTU 1 yıl önce
ebeveyn
işleme
bd3776ad0e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      test/Common/OSMD/OSMD_Test.ts

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

@@ -325,7 +325,7 @@ describe("OpenSheetMusicDisplay Main Export", () => {
                 chai.expect(cursor.NotesUnderCursor().length).to.greaterThanOrEqual(1);
                 chai.expect(cursor.Iterator.currentTimeStamp.RealValue).to.equal(0);
                 // go past end of sheet
-                for (let i: number = 1; i <= 260; i++) {
+                for (let i: number = 1; i <= 520; i++) { // 260 used to be enough when next() apparently ignored repeats
                     cursor.next(); // go past end of sheet: after 258 times in Clementi 36/1/1, the last timestamp is reached
                 }
                 chai.expect(cursor.Iterator.EndReached).to.equal(true);