mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b test
fix test fail because separate threads
This commit is contained in:
@@ -21,4 +21,5 @@ TEST(UI_button, on_click)
|
|||||||
{
|
{
|
||||||
UI_button button("button_id", "button_text", Color(255, 255, 255), Color(0, 0, 0), on_click);
|
UI_button button("button_id", "button_text", Color(255, 255, 255), Color(0, 0, 0), on_click);
|
||||||
button.click();
|
button.click();
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user