Skip to content

Commit 98b9b47

Browse files
author
Adrian Hall
committed
(#215) Enable connection retry on failure
1 parent 411e779 commit 98b9b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CommunityToolkit.Datasync.TestCommon/Databases/MySQL/MysqlDbContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static MysqlDbContext CreateContext(string connectionString, ITestOutputH
1818
}
1919

2020
DbContextOptionsBuilder<MysqlDbContext> optionsBuilder = new DbContextOptionsBuilder<MysqlDbContext>()
21-
.UseMySql(connectionString: connectionString, serverVersion: ServerVersion.AutoDetect(connectionString))
21+
.UseMySql(connectionString: connectionString, serverVersion: ServerVersion.AutoDetect(connectionString), options => options.EnableRetryOnFailure())
2222
.EnableLogging(output);
2323
MysqlDbContext context = new(optionsBuilder.Options);
2424

0 commit comments

Comments
 (0)