Skip to content

Commit 74f82f2

Browse files
committed
Remove 'async void'.
1 parent 077acbc commit 74f82f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/SideBySide/LoadDataInfileAsync.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Data;
2+
using System.Threading.Tasks;
23
using Dapper;
34
#if BASELINE
45
using MySql.Data.MySqlClient;
@@ -35,7 +36,7 @@ one int primary key
3536
}
3637

3738
[SkippableFact(ConfigSettings.CsvFile)]
38-
public async void CommandLoadCsvFile()
39+
public async Task CommandLoadCsvFile()
3940
{
4041
var insertInlineCommand = string.Format(m_loadDataInfileCommand, "", AppConfig.MySqlBulkLoaderCsvFile.Replace("\\", "\\\\"));
4142
using var command = new MySqlCommand(insertInlineCommand, m_database.Connection);
@@ -46,7 +47,7 @@ public async void CommandLoadCsvFile()
4647
}
4748

4849
[SkippableFact(ConfigSettings.LocalCsvFile | ConfigSettings.TrustedHost)]
49-
public async void CommandLoadLocalCsvFile()
50+
public async Task CommandLoadLocalCsvFile()
5051
{
5152
var insertInlineCommand = string.Format(m_loadDataInfileCommand, " LOCAL",
5253
AppConfig.MySqlBulkLoaderLocalCsvFile.Replace("\\", "\\\\"));
@@ -62,7 +63,7 @@ public async void CommandLoadLocalCsvFile()
6263
}
6364

6465
[SkippableFact(ConfigSettings.LocalCsvFile | ConfigSettings.TrustedHost, Baseline = "Doesn't require trusted host for LOAD DATA LOCAL INFILE")]
65-
public async void ThrowsNotSupportedExceptionForNotTrustedHostAndNotStream()
66+
public async Task ThrowsNotSupportedExceptionForNotTrustedHostAndNotStream()
6667
{
6768
var insertInlineCommand = string.Format(m_loadDataInfileCommand, " LOCAL",
6869
AppConfig.MySqlBulkLoaderLocalCsvFile.Replace("\\", "\\\\"));

0 commit comments

Comments
 (0)