Skip to content

Commit

Permalink
debug
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 ecce947 commit c974f21
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 @@ -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())
{
Expand All @@ -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<object> t = cmd.ExecuteScalarAsync(externalCancel.Token);
Expand Down

0 comments on commit c974f21

Please sign in to comment.