Add "send" test

This commit is contained in:
Alex Orlenko 2022-05-26 22:22:23 +01:00
parent afa343ff08
commit 62db3adde1
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 11 additions and 0 deletions

View File

@ -1272,3 +1272,14 @@ fn test_luajit_cdata() {
)
.eval();
}
#[test]
#[cfg(feature = "send")]
fn test_send() {
let lua = Lua::new();
std::thread::spawn(move || {
let _lua = lua;
})
.join()
.unwrap();
}