Skip to content

Commit f54de9d

Browse files
Copilothalter73
andcommitted
Fix net472 build error: use TimeSpan.FromTicks for multiplication
Co-authored-by: halter73 <54385+halter73@users.noreply.github.com>
1 parent 9dcd132 commit f54de9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ModelContextProtocol.Tests/Server/InMemoryMcpTaskStoreTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public async Task Dispose_StopsCleanupTimer()
491491
store.Dispose();
492492

493493
// Advance time - timer should not fire after dispose
494-
fakeTime.Advance(cleanupInterval * 3);
494+
fakeTime.Advance(TimeSpan.FromTicks(cleanupInterval.Ticks * 3));
495495

496496
// Assert - Store should still be accessible after dispose (no exceptions)
497497
// The cleanup timer should have stopped

0 commit comments

Comments
 (0)