Skip to content

Commit b41f377

Browse files
fix: write benchmarks return type
1 parent b1ab921 commit b41f377

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

benchmark/BenchmarkRunner/Benchmarks/MysqlWriteBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public void GlobalSetup()
3232
}
3333

3434
[IterationSetup]
35-
public async Task IterationSetup()
35+
public void IterationSetup()
3636
{
37-
await MysqlDatabaseHelper.CleanupWriteTableAsync(_connectionString);
37+
MysqlDatabaseHelper.CleanupWriteTableAsync(_connectionString).GetAwaiter().GetResult();
3838
Helpers.InvokeGarbageCollection();
3939
}
4040

benchmark/BenchmarkRunner/Benchmarks/PostgresqlWriteBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public void GlobalSetup()
3232
}
3333

3434
[IterationSetup]
35-
public async Task IterationSetup()
35+
public void IterationSetup()
3636
{
37-
await PostgresqlDatabaseHelper.CleanupWriteTableAsync(_connectionString);
37+
PostgresqlDatabaseHelper.CleanupWriteTableAsync(_connectionString).GetAwaiter().GetResult();
3838
Helpers.InvokeGarbageCollection();
3939
}
4040

benchmark/BenchmarkRunner/Benchmarks/SqliteWriteBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public void GlobalSetup()
3232
}
3333

3434
[IterationSetup]
35-
public async Task IterationSetup()
35+
public void IterationSetup()
3636
{
37-
await SqliteDatabaseHelper.CleanupWriteTableAsync(_connectionString);
37+
SqliteDatabaseHelper.CleanupWriteTableAsync(_connectionString).GetAwaiter().GetResult();
3838
Helpers.InvokeGarbageCollection();
3939
}
4040

0 commit comments

Comments
 (0)