Increase timeout in EF tests
This commit is contained in:
parent
0786f18c3e
commit
c73bd7e63e
|
|
@ -341,7 +341,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
.UseLoggerFactory(context.RequestServices.GetService<ILoggerFactory>());
|
||||
if (!PlatformHelper.IsMono)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(database.ConnectionString);
|
||||
optionsBuilder.UseSqlServer(database.ConnectionString, b => b.CommandTimeout(600));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
DataSource = @"(localdb)\MSSQLLocalDB",
|
||||
InitialCatalog = name,
|
||||
IntegratedSecurity = true,
|
||||
ConnectTimeout = 30
|
||||
ConnectTimeout = 600
|
||||
}.ConnectionString;
|
||||
}
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
|||
if (!PlatformHelper.IsMono)
|
||||
{
|
||||
var optionsBuilder = new DbContextOptionsBuilder();
|
||||
optionsBuilder.UseSqlServer(_connectionString);
|
||||
optionsBuilder.UseSqlServer(_connectionString, b => b.CommandTimeout(600));
|
||||
|
||||
using (var db = new DbContext(optionsBuilder.Options))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue