From 118e30882ae2ed33f622dd1eb57f45440523cb67 Mon Sep 17 00:00:00 2001 From: Antonio Andelic Date: Tue, 19 Mar 2024 12:01:19 +0100 Subject: [PATCH] Fix test with token --- tests/queries/0_stateless/02481_async_insert_dedup.python | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/02481_async_insert_dedup.python b/tests/queries/0_stateless/02481_async_insert_dedup.python index 0e80a21bf46..24512836290 100644 --- a/tests/queries/0_stateless/02481_async_insert_dedup.python +++ b/tests/queries/0_stateless/02481_async_insert_dedup.python @@ -119,7 +119,7 @@ q = queue.Queue(100) total_number = 10000 use_token = False -if len(sys.argv) > 3 and sys.argv[2] == "token": +if len(sys.argv) >= 3 and sys.argv[2] == "token": use_token = True gen = Thread(target=generate_data, args=[q, total_number, use_token])