Skip to content

Commit

Permalink
reduce the sleep time befor cancel to get better chance to cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Nov 17, 2023
1 parent 5f83d23 commit ecce947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 10;
cmd.CommandTimeout = 2;
try
{
Task<object> t = cmd.ExecuteScalarAsync(externalCancel.Token);
Expand Down Expand Up @@ -454,7 +454,7 @@ public void TestCancelQuery()
}
});

Thread.Sleep(8000);
Thread.Sleep(2000);
cmd.Cancel();

try
Expand Down

0 comments on commit ecce947

Please sign in to comment.