Improved performance of integration tests.
Some checks failed
ci / build-test (push) Failing after 8m39s
Some checks failed
ci / build-test (push) Failing after 8m39s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using JSMR.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Org.BouncyCastle.Asn1.Pkcs;
|
||||
|
||||
namespace JSMR.Tests.Fixtures;
|
||||
|
||||
@@ -33,8 +34,16 @@ public sealed class CircleSearchProviderFixture2(MariaDbContainerFixture contain
|
||||
|
||||
public async ValueTask InitializeAsync()
|
||||
{
|
||||
DbContext = await MariaTestDb.CreateIsolatedAsync(
|
||||
//DbContext = await MariaTestDb.CreateIsolatedAsync(
|
||||
// container.RootConnectionString,
|
||||
// seed: SeedAsync);
|
||||
|
||||
var newDb = $"t_{DateTime.UtcNow:yyyyMMddHHmmss}_{Guid.NewGuid():N}";
|
||||
|
||||
DbContext = await MariaDbClone.CloneFromTemplateAsync(
|
||||
container.RootConnectionString,
|
||||
container.TemplateDbName,
|
||||
newDbName: newDb,
|
||||
seed: SeedAsync);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user