fix an issue that tests for ImGuiLuaJITDriver doesn't finish
This commit is contained in:
parent
b4b121cebd
commit
2eb17d8db9
@ -33,7 +33,7 @@ TEST_F(ImGuiLuaJITDriver, CompileAndInstall) {
|
|||||||
ON_CALL(*logger, Push).WillByDefault(
|
ON_CALL(*logger, Push).WillByDefault(
|
||||||
[](const auto& item) {std::cout << item.contents() << std::endl; });
|
[](const auto& item) {std::cout << item.contents() << std::endl; });
|
||||||
|
|
||||||
const auto subenv = nf7::LazyEnv::Make(
|
auto subenv = nf7::LazyEnv::Make(
|
||||||
{{typeid(nf7::subsys::Logger), logger}}, env().self());
|
{{typeid(nf7::subsys::Logger), logger}}, env().self());
|
||||||
|
|
||||||
auto fu = nf7::core::imgui::LuaJITDriver::CompileAndInstall(
|
auto fu = nf7::core::imgui::LuaJITDriver::CompileAndInstall(
|
||||||
@ -48,7 +48,7 @@ TEST_F(ImGuiLuaJITDriver, CompileAndInstall) {
|
|||||||
concurrency->Push(
|
concurrency->Push(
|
||||||
nf7::SyncTask {
|
nf7::SyncTask {
|
||||||
clock->now() + std::chrono::seconds {10},
|
clock->now() + std::chrono::seconds {10},
|
||||||
[&](auto&) { DropEnv(); },
|
[&](auto&) { DropEnv(); subenv = nullptr; },
|
||||||
});
|
});
|
||||||
ConsumeTasks();
|
ConsumeTasks();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user