Skip to content

Commit 8303bd6

Browse files
committed
Safe delay.
1 parent 1642482 commit 8303bd6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NETProvider/src/FirebirdSql.Data.UnitTests/FbConnectionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void ConnectionPoolingTimeOutTest()
201201
myConnection2.Close();
202202
}
203203

204-
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime + 1));
204+
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime * 2));
205205

206206
Assert.AreEqual(active, GetActiveConnections());
207207

@@ -276,7 +276,7 @@ public void ConnectionPoolingMinPoolSizeTest()
276276
connections.ForEach(x => x.Dispose());
277277
}
278278

279-
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime + 1));
279+
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime * 2));
280280

281281
Assert.AreEqual(active + csb.MinPoolSize, GetActiveConnections());
282282
}

NETProvider/src/FirebirdSql.Data.UnitTests/TrackerIssuesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public void DNET595()
309309
GetSomething(cs);
310310
}
311311

312-
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime + 1));
312+
Thread.Sleep(TimeSpan.FromSeconds(csb.ConnectionLifeTime * 2));
313313
Assert.AreEqual(active, GetActiveConnections());
314314
}
315315

0 commit comments

Comments
 (0)