Fix WireMockContainerBuilder (duplicate entries) (#1222)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2024-12-31 18:24:29 +01:00
1 parent 485f7ad952
commit ab7ce37e7e
7 files changed
+199 -109

No files matched your search

@@ -0,0 +1,19 @@
// Copyright © WireMock.Net
#if NET6_0_OR_GREATER
using System.Runtime.InteropServices;
using WireMock.Net.Testcontainers.Utils;
using Xunit;
namespace WireMock.Net.Tests.Facts;
public sealed class RunOnDockerPlatformFact : FactAttribute
{
public RunOnDockerPlatformFact(string platform)
{
if (TestcontainersUtils.GetImageOSAsync.Value.Result != OSPlatform.Create(platform))
{
Skip = $"Only run test when Docker OS Platform {platform} is used.";
}
}
}
#endif