Skip to content

Commit

Permalink
Revert "Fixed query replace test (#170)"
Browse files Browse the repository at this point in the history
This reverts commit df5777f.
  • Loading branch information
DarkWanderer committed Sep 11, 2022
1 parent df5777f commit 83995eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ClickHouse.Client.Tests/ConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ public async Task ClientShouldSetQueryId()
}

[Test]
[NonParallelizable]
[Explicit("This test takes 3s, and can be flaky on loaded server")]
public async Task ReplaceRunningQuerySettingShouldReplace()
{
connection.CustomSettings.Add("replace_running_query", 1);
string queryId = Guid.NewGuid().ToString();
string queryId = "MyQueryId123456";

var command1 = connection.CreateCommand();
var command2 = connection.CreateCommand();

command1.CommandText = "SELECT sum(number) FROM system.numbers WHERE number < 1000000000";
command1.CommandText = "SELECT sleep(3) FROM system.numbers LIMIT 100";
command2.CommandText = "SELECT 1";

command1.QueryId = queryId;
command2.QueryId = queryId;

var asyncResult1 = command1.ExecuteScalarAsync().ConfigureAwait(false);
var asyncResult2 = command2.ExecuteScalarAsync().ConfigureAwait(false);
var asyncResult1 = command1.ExecuteScalarAsync();
var asyncResult2 = command2.ExecuteScalarAsync();

try
{
Expand Down

0 comments on commit 83995eb

Please sign in to comment.