Skip to content

Commit ba48a18

Browse files
committed
review: use smaller iteration count to avoid noise in logs.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 142bac4 commit ba48a18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtime_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,17 @@ TEST_P(TestVm, Callback) {
235235
WasmCallVoid<0> run;
236236
wasm.wasm_vm()->getFunction("run", &run);
237237
ASSERT_TRUE(run != nullptr);
238-
for (auto i = 0; i < 100; i++) {
238+
for (auto i = 0; i < 5; i++) {
239239
run(wasm.vm_context());
240240
}
241241
auto *context = dynamic_cast<TestCounterContext *>(wasm.vm_context());
242-
EXPECT_EQ(context->getCount(), 100);
242+
EXPECT_EQ(context->getCount(), 5);
243243

244244
WasmCallWord<1> run2;
245245
wasm.wasm_vm()->getFunction("run2", &run2);
246246
ASSERT_TRUE(run2 != nullptr);
247247
Word res = run2(wasm.vm_context(), Word{0});
248-
EXPECT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback)
248+
EXPECT_EQ(res.u32(), 100100); // 10000 (global) + 100 (in callback)
249249
}
250250

251251
TEST_P(TestVm, TerminateExecution) {

0 commit comments

Comments
 (0)