mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Fix race conditions when accessing variables
This commit is contained in:
@@ -40,7 +40,7 @@ TEST_CASE("Variable", "[variable]")
|
||||
variable.Value(false);
|
||||
REQUIRE(*variable.GetSecondsSinceLastUse() > 1);
|
||||
|
||||
variable.UpdateLastUsed();
|
||||
variable.MarkAsUsed();
|
||||
REQUIRE(*variable.GetSecondsSinceLastUse() == 0);
|
||||
|
||||
variable.SetValue(123);
|
||||
|
||||
Reference in New Issue
Block a user