Skip to content

Commit 7b54891

Browse files
committed
rebase and fix assert to console.assert as well as hasAnyTag
1 parent a6df024 commit 7b54891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JetStreamDriver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,10 +1124,10 @@ class Benchmark {
11241124
class GroupedBenchmark extends Benchmark {
11251125
constructor(plan, benchmarks) {
11261126
super(plan);
1127-
assert(benchmarks.length);
1127+
console.assert(benchmarks.length);
11281128
for (const benchmark of benchmarks) {
11291129
// FIXME: Tags don't work for grouped tests anyway but if they did then this would be weird and probably wrong.
1130-
assert(benchmark.plan.tags.indexOf("Default") === -1, `Grouped benchmark sub-benchmarks shouldn't have the "Default" tag`, benchmark.tags);
1130+
console.assert(!benchmark.hasAnyTag("Default"), `Grouped benchmark sub-benchmarks shouldn't have the "Default" tag`, benchmark.tags);
11311131
}
11321132
benchmarks.sort((a, b) => a.name.toLowerCase() < b.name.toLowerCase() ? 1 : -1);
11331133
this.benchmarks = benchmarks;

0 commit comments

Comments
 (0)