Skip to content

Commit 865e108

Browse files
authored
Add retrying execution strategy in tests (#3799)
1 parent 6bba43f commit 865e108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/EFCore.PG.FunctionalTests/TestUtilities/NpgsqlDbContextOptionsBuilderExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public static NpgsqlDbContextOptionsBuilder ApplyConfiguration(this NpgsqlDbCont
88
{
99
optionsBuilder.UseQuerySplittingBehavior(QuerySplittingBehavior.SingleQuery);
1010

11+
optionsBuilder.ExecutionStrategy(d => new TestNpgsqlRetryingExecutionStrategy(d));
12+
1113
optionsBuilder.CommandTimeout(NpgsqlTestStore.CommandTimeout);
1214

1315
return optionsBuilder;

0 commit comments

Comments
 (0)