Skip to content

Commit

Permalink
Update NyzoTransactionTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminvanrenterghem committed May 8, 2024
1 parent 3a72e3c commit 32db844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet.Nyzo.CL.Tests/NyzoTransactionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void Constructing_ShouldResultInCorrectDefaultPropertyValues() {

// Seconds will be stripped to be able to check whether both this and the timestamp assigned during init are reasonably equal
// The while() halt assures that both the defaultTimestamp and tx are created in the same minute, to avoid the rare possibility that this test fails due to the DateTimes being created with a different Minute
while (DateTime.Now.Second < 1) { }
while (DateTime.Now.Second < 1 || DateTime.Now.Second > 58) { }
var defaultTimestamp = DateTime.Now;

// Act
Expand Down

0 comments on commit 32db844

Please sign in to comment.