diff options
| author | Szalay Kristóf <32012862+littletof@users.noreply.github.com> | 2020-06-03 19:45:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 13:45:37 -0400 |
| commit | cab273476a4ff725d53a8e41bf3f8a90060236d4 (patch) | |
| tree | 28b7f7c180dbdde32e65c77058147e77fe09eab7 /std/testing/bench_test.ts | |
| parent | 4ef38bad4340b5c8100ec2522264c57f0522aa2d (diff) | |
fix(std/testing/bench): clock assertions without --allow-hrtime (#6069)
Diffstat (limited to 'std/testing/bench_test.ts')
| -rw-r--r-- | std/testing/bench_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/testing/bench_test.ts b/std/testing/bench_test.ts index e36451fb0..566aada6d 100644 --- a/std/testing/bench_test.ts +++ b/std/testing/bench_test.ts @@ -308,7 +308,7 @@ test({ ); assertEquals(resultOfMultiple.length, 1); assert(!!resultOfMultiple[0].measuredRunsMs); - assert(!!resultOfMultiple[0].measuredRunsAvgMs); + assert(!isNaN(resultOfMultiple[0].measuredRunsAvgMs!)); assertEquals(resultOfMultiple[0].measuredRunsMs!.length, 2); // The last progress should equal the final result from promise except the state property |
