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>());
|
.UseLoggerFactory(context.RequestServices.GetService<ILoggerFactory>());
|
||||||
if (!PlatformHelper.IsMono)
|
if (!PlatformHelper.IsMono)
|
||||||
{
|
{
|
||||||
optionsBuilder.UseSqlServer(database.ConnectionString);
|
optionsBuilder.UseSqlServer(database.ConnectionString, b => b.CommandTimeout(600));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
||||||
DataSource = @"(localdb)\MSSQLLocalDB",
|
DataSource = @"(localdb)\MSSQLLocalDB",
|
||||||
InitialCatalog = name,
|
InitialCatalog = name,
|
||||||
IntegratedSecurity = true,
|
IntegratedSecurity = true,
|
||||||
ConnectTimeout = 30
|
ConnectTimeout = 600
|
||||||
}.ConnectionString;
|
}.ConnectionString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests
|
||||||
if (!PlatformHelper.IsMono)
|
if (!PlatformHelper.IsMono)
|
||||||
{
|
{
|
||||||
var optionsBuilder = new DbContextOptionsBuilder();
|
var optionsBuilder = new DbContextOptionsBuilder();
|
||||||
optionsBuilder.UseSqlServer(_connectionString);
|
optionsBuilder.UseSqlServer(_connectionString, b => b.CommandTimeout(600));
|
||||||
|
|
||||||
using (var db = new DbContext(optionsBuilder.Options))
|
using (var db = new DbContext(optionsBuilder.Options))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue