Skip to content

Commit 218d875

Browse files
committed
Fix error due to wrong custom format in .ToString()
1 parent 1211978 commit 218d875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm.Tests/Linq/LocalCollectionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ private static string GetFakeDelayedCommandTest(Session session, string original
978978
var currentCommandTimeout = session.CommandTimeout.Value;
979979

980980
return StorageProviderInfo.Instance.Provider switch {
981-
StorageProvider.SqlServer => $"WAITFOR DELAY '{TimeSpan.FromSeconds(currentCommandTimeout + 2).ToString("hh:mm.ss")}'" + originalCommandText,
981+
StorageProvider.SqlServer => $"WAITFOR DELAY '{TimeSpan.FromSeconds(currentCommandTimeout + 2).ToString(@"hh\:mm\:ss")}'" + originalCommandText,
982982
StorageProvider.PostgreSql => $"SELECT pg_sleep({currentCommandTimeout + 2});" + originalCommandText,
983983
_ => throw new ArgumentOutOfRangeException()
984984
};

0 commit comments

Comments
 (0)