Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Apochromat committed Sep 17, 2024
1 parent f36115d commit a9cc038
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
pull_request:
branches: [ main ]

permissions:
id-token: write
contents: read
checks: write

jobs:
build:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;

namespace MccSoft.IntegreSql.EF.DatabaseInitialization;

Expand Down Expand Up @@ -56,6 +57,7 @@ DatabaseSeedingOptions<TDbContext> databaseSeedingOptions
.ConfigureAwait(false)
.GetAwaiter()
.GetResult();
options.ConfigureWarnings(x => x.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning));
UseProvider(options, connectionString);
}

Expand Down
2 changes: 0 additions & 2 deletions src/MccSoft.IntegreSql.EF/NpgsqlDatabaseInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ await _integreSqlClient.RecreateTestDatabase(

public override void UseProvider(DbContextOptionsBuilder options, string connectionString)
{
options.ConfigureWarnings(x => x.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning));

var dataSourceBuilder = new NpgsqlDataSourceBuilder(connectionString);
_adjustNpgsqlDataSource?.Invoke(dataSourceBuilder);
var dataSource = dataSourceBuilder.Build();
Expand Down

0 comments on commit a9cc038

Please sign in to comment.