File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public sealed class AgentSessionServiceTests
1313{
1414 private const int LegacyDefaultRole = 4 ;
1515 private const string LegacyEmptyCapabilitiesJson = "[]" ;
16- private const int DeleteRetryCount = 20 ;
16+ private const int DeleteRetryCount = 40 ;
1717 private static readonly TimeSpan DeleteRetryDelay = TimeSpan . FromMilliseconds ( 250 ) ;
1818
1919 [ Test ]
@@ -650,6 +650,7 @@ private static async Task DeleteDirectoryWithRetryAsync(string path)
650650 {
651651 for ( var attempt = 0 ; attempt < DeleteRetryCount ; attempt ++ )
652652 {
653+ SqliteConnection . ClearAllPools ( ) ;
653654 if ( ! Directory . Exists ( path ) )
654655 {
655656 return ;
Original file line number Diff line number Diff line change 22using System . Text . Json . Serialization . Metadata ;
33using DotPilot . Core . ChatSessions ;
44using DotPilot . Core . ControlPlaneDomain ;
5+ using Microsoft . Data . Sqlite ;
56using Microsoft . Extensions . AI ;
67using Microsoft . Extensions . DependencyInjection ;
78
89namespace DotPilot . Tests . ChatSessions ;
910
1011public sealed class AgentSessionPersistenceTests
1112{
12- private const int DeleteRetryCount = 20 ;
13+ private const int DeleteRetryCount = 40 ;
1314 private static readonly TimeSpan DeleteRetryDelay = TimeSpan . FromMilliseconds ( 250 ) ;
1415 private static readonly JsonSerializerOptions HistorySerializerOptions = new ( )
1516 {
@@ -158,6 +159,7 @@ private static async Task DeleteDirectoryAsync(string path)
158159 {
159160 for ( var attempt = 0 ; attempt < DeleteRetryCount ; attempt ++ )
160161 {
162+ SqliteConnection . ClearAllPools ( ) ;
161163 if ( ! Directory . Exists ( path ) )
162164 {
163165 return ;
Original file line number Diff line number Diff line change 11using DotPilot . Core . ChatSessions ;
22using DotPilot . Tests . Providers ;
3+ using Microsoft . Data . Sqlite ;
34using Microsoft . Extensions . DependencyInjection ;
45
56namespace DotPilot . Tests . Workspace ;
67
78[ NonParallelizable ]
89public sealed class StartupWorkspaceHydrationTests
910{
10- private const int DeleteRetryCount = 20 ;
11+ private const int DeleteRetryCount = 40 ;
1112 private static readonly TimeSpan DeleteRetryDelay = TimeSpan . FromMilliseconds ( 250 ) ;
1213
1314 [ Test ]
@@ -112,6 +113,7 @@ private static async Task DeleteDirectoryWithRetryAsync(string path)
112113 {
113114 for ( var attempt = 0 ; attempt < DeleteRetryCount ; attempt ++ )
114115 {
116+ SqliteConnection . ClearAllPools ( ) ;
115117 if ( ! Directory . Exists ( path ) )
116118 {
117119 return ;
You can’t perform that action at this time.
0 commit comments