Skip to content

Commit f19c6aa

Browse files
committed
Fix tests
1 parent 29af448 commit f19c6aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/hooks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
use std::sync::atomic::{AtomicI64, Ordering};
44
use std::sync::{Arc, Mutex};
55

6-
use mlua::{DebugEvent, Error, HookTriggers, Lua, Result, ThreadStatus, Value, VmState};
6+
use mlua::debug::DebugEvent;
7+
use mlua::{Error, HookTriggers, Lua, Result, ThreadStatus, Value, VmState};
78

89
#[test]
910
fn test_hook_triggers() {

tests/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ fn test_inspect_stack() -> Result<()> {
13741374
local function baz(a, b, c, ...)
13751375
return stack_info()
13761376
end
1377-
assert(baz() == 'DebugStack { num_ups: 1, num_params: 3, is_vararg: true }')
1377+
assert(baz() == 'DebugStack { num_upvalues: 1, num_params: 3, is_vararg: true }')
13781378
"#,
13791379
)
13801380
.exec()?;
@@ -1387,7 +1387,7 @@ fn test_inspect_stack() -> Result<()> {
13871387
local function baz(a, b, c, ...)
13881388
return stack_info()
13891389
end
1390-
assert(baz() == 'DebugStack { num_ups: 1 }')
1390+
assert(baz() == 'DebugStack { num_upvalues: 1 }')
13911391
"#,
13921392
)
13931393
.exec()?;

0 commit comments

Comments
 (0)