From f9d4859856e485cf5e3a15c170f3c2a5b4df6f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Luthi?= Date: Fri, 8 May 2026 13:08:14 +0200 Subject: [PATCH] Remove the Docker_IsRunning test Most tests will fail if Docker is not running anyway. And if using an alternative Docker engine (e.g. OrbStack configured with the `DOCKER_HOST` env var) then all tests will pass except for this Docker_IsRunning test. --- test/Docker.DotNet.Tests/ISystemOperations.Tests.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/Docker.DotNet.Tests/ISystemOperations.Tests.cs b/test/Docker.DotNet.Tests/ISystemOperations.Tests.cs index 6908f1cc..d2fb43e0 100644 --- a/test/Docker.DotNet.Tests/ISystemOperations.Tests.cs +++ b/test/Docker.DotNet.Tests/ISystemOperations.Tests.cs @@ -12,13 +12,6 @@ public ISystemOperationsTests(TestFixture testFixture, ITestOutputHelper testOut _testOutputHelper = testOutputHelper; } - [Fact] - public void Docker_IsRunning() - { - var dockerProcess = Process.GetProcesses().FirstOrDefault(process => process.ProcessName.Equals("docker", StringComparison.InvariantCultureIgnoreCase) || process.ProcessName.Equals("dockerd", StringComparison.InvariantCultureIgnoreCase)); - Assert.NotNull(dockerProcess); - } - [Fact] public async Task GetSystemInfoAsync_Succeeds() {