Skip to content

Commit ee78593

Browse files
committed
update
Signed-off-by: Kuat Yessenov <[email protected]>
1 parent 018cb3a commit ee78593

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/wasm_test.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@ TEST_P(TestVm, AlwaysApplyCanary) {
200200
if (first) {
201201
first = false;
202202
EXPECT_EQ(canary_count, 0);
203-
continue;
203+
} else {
204+
// For each create Wasm, canary should be done.
205+
EXPECT_EQ(canary_count, 1);
206+
EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_id));
204207
}
205208

206-
// For each create Wasm, canary should be done.
207-
EXPECT_EQ(canary_count, 1);
208-
209209
if (plugin_config.empty()) {
210210
// canary_check.wasm should raise the error at `onConfigure` in canary when the
211211
// `plugin_config` is empty string.
@@ -219,8 +219,6 @@ TEST_P(TestVm, AlwaysApplyCanary) {
219219
// destroyed for each iteration.
220220
reference_holder.insert(wasm_handle_comp);
221221

222-
EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_id));
223-
224222
// Wasm VM is unique for vm_key.
225223
if (vm_key == vm_key_baseline) {
226224
EXPECT_EQ(wasm_handle_baseline->wasm(), wasm_handle_comp->wasm());

0 commit comments

Comments
 (0)