Skip to content

Commit 92c5aa9

Browse files
committed
FakeTimeProder does not work as expected when passing a DateTimeOffset with an actuall offset, .GetUtcNow(); return a DateTimeOffset with that same offset (!!) while this MUST be a value without an offset.
1 parent a076352 commit 92c5aa9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ServiceControl.Transports.SQS.Tests/AmazonSQSQueryTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ class AmazonSQSQueryTests : TransportTestFixture
2525
public void Initialise()
2626
{
2727
provider = new();
28-
29-
var kiribati = TimeZoneInfo.FindSystemTimeZoneById("Pacific/Kiritimati");
30-
var furthestAhead = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, kiribati);
31-
provider.SetUtcNow(furthestAhead);
28+
provider.SetUtcNow(DateTimeOffset.UtcNow);
3229
transportSettings = new TransportSettings
3330
{
3431
ConnectionString = configuration.ConnectionString,

0 commit comments

Comments
 (0)