Skip to content

Commit 0236f00

Browse files
committed
review: pull stacktrace tests from proxy-wasm#255.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 9b3e34e commit 0236f00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtime_test.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ TEST_P(TestVm, Trap) {
296296
EXPECT_TRUE(host->isErrorLogged("Function: trigger failed"));
297297
if (engine_ == "v8") {
298298
EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable"));
299+
EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:"));
300+
EXPECT_TRUE(host->isErrorLogged(" - trigger"));
299301
}
300302
}
301303

@@ -322,6 +324,8 @@ TEST_P(TestVm, Trap2) {
322324
EXPECT_TRUE(host->isErrorLogged("Function: trigger2 failed"));
323325
if (engine_ == "v8") {
324326
EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable"));
327+
EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:"));
328+
EXPECT_TRUE(host->isErrorLogged(" - trigger2"));
325329
}
326330
}
327331

0 commit comments

Comments
 (0)