File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,17 @@ TEST_P(TestVm, Callback) {
235
235
WasmCallVoid<0 > run;
236
236
wasm.wasm_vm ()->getFunction (" run" , &run);
237
237
ASSERT_TRUE (run != nullptr );
238
- for (auto i = 0 ; i < 100 ; i++) {
238
+ for (auto i = 0 ; i < 5 ; i++) {
239
239
run (wasm.vm_context ());
240
240
}
241
241
auto *context = dynamic_cast <TestCounterContext *>(wasm.vm_context ());
242
- EXPECT_EQ (context->getCount (), 100 );
242
+ EXPECT_EQ (context->getCount (), 5 );
243
243
244
244
WasmCallWord<1 > run2;
245
245
wasm.wasm_vm ()->getFunction (" run2" , &run2);
246
246
ASSERT_TRUE (run2 != nullptr );
247
247
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)
249
249
}
250
250
251
251
TEST_P (TestVm, TerminateExecution) {
You can’t perform that action at this time.
0 commit comments