From 76e4f51a21256d747c338f5bc3141174b26d44d5 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Fri, 9 Sep 2022 15:21:18 +0000 Subject: [PATCH] Removed the test testing the old logic flow. --- .../L0/Worker/ContainerOperationProviderL0.cs | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/Test/L0/Worker/ContainerOperationProviderL0.cs b/src/Test/L0/Worker/ContainerOperationProviderL0.cs index a1c3b70cc..7bd567544 100644 --- a/src/Test/L0/Worker/ContainerOperationProviderL0.cs +++ b/src/Test/L0/Worker/ContainerOperationProviderL0.cs @@ -5,13 +5,7 @@ using Moq; using GitHub.Runner.Worker.Container.ContainerHooks; using System.Threading.Tasks; using System.Collections.Generic; -using System; -using System.IO; -using System.Reflection; using System.Runtime.CompilerServices; -using System.Text; -using System.Threading; - namespace GitHub.Runner.Common.Tests.Worker { @@ -51,22 +45,6 @@ namespace GitHub.Runner.Common.Tests.Worker } - [Fact] - [Trait("Level", "L0")] - [Trait("Category", "Worker")] - public async void HealthcheckTestDockerErrorLogs() - { - //Arrange - Setup(); - _dockerManager.Setup(x => x.DockerLogs(_ec.Object, containerInfo.ContainerId)).Returns(Task.FromResult(1)); - //Act - await containerOperationProvider.ContainerHealthcheckLogs(_ec.Object, containerInfo, "error"); - - //Assert - _ec.Verify(dm => dm.Write(It.IsAny(), It.IsAny()), Times.Exactly(2)); - _ec.Verify(dm => dm.Write(null, $"##[group]Container {containerInfo.ContainerImage} failed healthchecks, printing logs:"), Times.AtLeastOnce()); - _ec.Verify(dm => dm.Write(null, "##[endgroup]"), Times.AtLeastOnce()); - } private void Setup([CallerMemberName] string testName = "") {