Content-Length: 270056 | pFad | http://github.com/NativeScript/napi-android/commit/08c6764204cd1a748eb6f7ee6525e764c3542e3f

67 increase time tests retries · NativeScript/napi-android@08c6764 · GitHub
Skip to content

Commit 08c6764

Browse files
committed
increase time tests retries
1 parent 72d354a commit 08c6764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test-app/app/src/main/assets/app/tests/testRuntimeImplementedAPIs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe("Runtime exposes", function () {
33
// Try to get the times using Date.now and __time and compare the results, expect them to be somewhat "close".
44
// Sometimes GC hits after Date.now is captured but before __time or the vice-versa and the test fails,
55
// so we are giving it several attempts.
6-
for(var i = 0; i < 5; i++) {
6+
for(var i = 0; i < 10; i++) {
77
try {
88
var dateTimeStart = Date.now();
99
var timeStart = __time();
@@ -21,7 +21,7 @@ describe("Runtime exposes", function () {
2121
expect(Math.abs(dateDelta - timeDelta) < dateDelta * 0.25).toBe(true);
2222
break;
2323
} catch(e) {
24-
if (i == 4) {
24+
if (i == 9) {
2525
throw e;
2626
}
2727
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/napi-android/commit/08c6764204cd1a748eb6f7ee6525e764c3542e3f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy