Skip to content

Commit f88c6db

Browse files
Fix flaky integration test: use synchronous .clear table instead of .clear async table
1 parent 998ae55 commit f88c6db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/IntegrationTests/KustoBindingE2EIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class KustoBindingE2EIntegrationTests : BeforeAfterTestAttribute, IDispos
3939
private readonly string CreateItemTable = $".create-merge table {TableName}(ID:int,Name:string, Cost:double,Timestamp:datetime)";
4040
private readonly string CreateTableMappings = $".create-or-alter table {TableName} ingestion json mapping \"{MappingName}\" '[{{\"column\":\"ID\",\"path\":\"$.ProductID\",\"datatype\":\"\",\"transform\":null}},{{\"column\":\"Name\",\"path\":\"$.ProductName\",\"datatype\":\"\",\"transform\":null}},{{\"column\":\"Cost\",\"path\":\"$.UnitCost\",\"datatype\":\"\",\"transform\":null}},{{\"column\":\"Timestamp\",\"path\":\"$.Timestamp\",\"datatype\":\"\",\"transform\":null}}]'";
4141
private readonly string DropTableMappings = $".drop table {TableName} ingestion json mapping \"{MappingName}\"";
42-
private readonly string ClearItemTable = $".clear async table {TableName} data";
42+
private readonly string ClearItemTable = $".clear table {TableName} data";
4343
private readonly string DropTable = $".drop table {TableName}";
4444
// Queries for input binding with parameters
4545
private const string QueryWithBoundParam = "declare query_parameters(startId:int,endId:int);kusto_functions_e2e_tests | where ID >= startId and ID <= endId and ingestion_time()>ago(10s)";

0 commit comments

Comments
 (0)