1
1
using System . Data ;
2
+ using System . Threading . Tasks ;
2
3
using Dapper ;
3
4
#if BASELINE
4
5
using MySql . Data . MySqlClient ;
@@ -35,7 +36,7 @@ one int primary key
35
36
}
36
37
37
38
[ SkippableFact ( ConfigSettings . CsvFile ) ]
38
- public async void CommandLoadCsvFile ( )
39
+ public async Task CommandLoadCsvFile ( )
39
40
{
40
41
var insertInlineCommand = string . Format ( m_loadDataInfileCommand , "" , AppConfig . MySqlBulkLoaderCsvFile . Replace ( "\\ " , "\\ \\ " ) ) ;
41
42
using var command = new MySqlCommand ( insertInlineCommand , m_database . Connection ) ;
@@ -46,7 +47,7 @@ public async void CommandLoadCsvFile()
46
47
}
47
48
48
49
[ SkippableFact ( ConfigSettings . LocalCsvFile | ConfigSettings . TrustedHost ) ]
49
- public async void CommandLoadLocalCsvFile ( )
50
+ public async Task CommandLoadLocalCsvFile ( )
50
51
{
51
52
var insertInlineCommand = string . Format ( m_loadDataInfileCommand , " LOCAL" ,
52
53
AppConfig . MySqlBulkLoaderLocalCsvFile . Replace ( "\\ " , "\\ \\ " ) ) ;
@@ -62,7 +63,7 @@ public async void CommandLoadLocalCsvFile()
62
63
}
63
64
64
65
[ 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 ( )
66
67
{
67
68
var insertInlineCommand = string . Format ( m_loadDataInfileCommand , " LOCAL" ,
68
69
AppConfig . MySqlBulkLoaderLocalCsvFile . Replace ( "\\ " , "\\ \\ " ) ) ;
0 commit comments