Skip to content

Commit f2d2fdb

Browse files
committed
修复测试用例
1 parent 23326a6 commit f2d2fdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DotnetSpider.Tests/MySqlQueueSchedulerTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ public Opt()
2121
{
2222
Value = new MySqlSchedulerOptions
2323
{
24+
#if DEBUG
2425
ConnectionString =
2526
"Database='test';Data Source=localhost;password=1qazZAQ!;User ID=root;Port=3306;SslMode=None;Allow User Variables=True;AllowPublicKeyRetrieval=True"
27+
#else
28+
ConnectionString =
29+
"Database='mysql';Data Source=localhost;password=1qazZAQ!;User ID=root;Port=3306;SslMode=None;Allow User Variables=True;AllowPublicKeyRetrieval=True"
30+
#endif
2631
};
2732
}
2833
}

0 commit comments

Comments
 (0)