Skip to content

Commit

Permalink
fix initating resource
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Oct 24, 2024
1 parent 102c559 commit d25262d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ public static Scenario WithRevokedDelegationToUser(IParty organization, IUserPro

public static Scenario WithInstanceDelegation(IParty from, IParty to, IAccessManagementResource resource, string instanceId) => async mock =>

Check warning on line 136 in test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 136 in test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check failure on line 136 in test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs

View workflow job for this annotation

GitHub Actions / Build and Test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check failure on line 136 in test/Altinn.AccessManagement.Tests/Scenarios/DelegationScenarios.cs

View workflow job for this annotation

GitHub Actions / Build and Test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
resource ??= ResourceSeeds.AltinnApp.Defaults;

mock.DbSeeds.AddRange([
async postgres => await postgres.DelegationMetadataRepository.InsertInstanceDelegation(
new()
Expand Down
2 changes: 1 addition & 1 deletion test/Altinn.AccessManagement.Tests/Seeds/ResourceSeeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ChalkboardResource : ResourceBase

public new static readonly string Identifier = "chalkboard";

public static ChalkboardResource Defaults { get; } = new MaskinportenSchema();
public static ChalkboardResource Defaults { get; } = new ChalkboardResource();

public ChalkboardResource(params Action<ServiceResource>[] modifiers)
{
Expand Down

0 comments on commit d25262d

Please sign in to comment.