diff --git a/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs index 94b9517c7..ca708d231 100755 --- a/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs @@ -108,7 +108,7 @@ public void TestExecAsyncAPIParallel() [Test] public void TestCancelExecuteAsync() { - CancellationTokenSource externalCancel = new CancellationTokenSource(TimeSpan.FromSeconds(8)); + CancellationTokenSource externalCancel = new CancellationTokenSource(TimeSpan.FromSeconds(2)); using (DbConnection conn = new SnowflakeDbConnection()) { @@ -120,7 +120,7 @@ public void TestCancelExecuteAsync() DbCommand cmd = conn.CreateCommand(); cmd.CommandText = "select count(seq4()) from table(generator(timelimit => 20)) v"; // external cancellation should be triggered before timeout - cmd.CommandTimeout = 2; + cmd.CommandTimeout = 10; try { Task t = cmd.ExecuteScalarAsync(externalCancel.Token);