From ecce94719925400ffffbf6f962190d724128b6d9 Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-hx Date: Fri, 17 Nov 2023 15:14:36 -0800 Subject: [PATCH] reduce the sleep time befor cancel to get better chance to cancel --- Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs index 4da414b9b..94b9517c7 100755 --- a/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFDbCommandIT.cs @@ -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 t = cmd.ExecuteScalarAsync(externalCancel.Token); @@ -454,7 +454,7 @@ public void TestCancelQuery() } }); - Thread.Sleep(8000); + Thread.Sleep(2000); cmd.Cancel(); try