Skip to content

Commit aaafb61

Browse files
committed
fix: limit tests to versions they work in
1 parent ea5cddd commit aaafb61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/TimeProviderExtensions.Tests/ManualTimeProviderTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void SetUtcNow_updates_UtcNow()
2323

2424
sut.GetUtcNow().Should().Be(startTime + TimeSpan.FromTicks(1));
2525
}
26-
26+
#if NET8_0_OR_GREATER
2727
[Fact]
2828
public async Task Delay_callbacks_runs_synchronously()
2929
{
@@ -74,4 +74,5 @@ await Task.Delay(TimeSpan.FromDays(1))
7474
}
7575
}
7676
}
77+
#endif
7778
}

0 commit comments

Comments
 (0)