aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/Helpers/TestClock.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-13 17:08:20 +0800
committercrupest <crupest@outlook.com>2020-11-13 17:08:20 +0800
commitbd2462f2bc964839e9b64f167dfa47abb3f9afe6 (patch)
tree9aefc6cb0f10ac9e8e90d66d115849469813a08f /BackEnd/Timeline.Tests/Helpers/TestClock.cs
parent379b4bafe982a8a8cd3158f0a9fa38a563dbdb57 (diff)
downloadtimeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.tar.gz
timeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.tar.bz2
timeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests/Helpers/TestClock.cs')
-rw-r--r--BackEnd/Timeline.Tests/Helpers/TestClock.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline.Tests/Helpers/TestClock.cs b/BackEnd/Timeline.Tests/Helpers/TestClock.cs
index a04a3eb6..7fa17fbe 100644
--- a/BackEnd/Timeline.Tests/Helpers/TestClock.cs
+++ b/BackEnd/Timeline.Tests/Helpers/TestClock.cs
@@ -33,7 +33,7 @@ namespace Timeline.Tests.Helpers
{
if (_currentTime == null)
return SetMockCurrentTime();
- _currentTime += timeSpan;
+ _currentTime = _currentTime.Value + timeSpan;
return _currentTime.Value;
}
}