From b1a963d539fb4d564869ccfbf8b35b9acda82d59 Mon Sep 17 00:00:00 2001 From: Kirill Krylov Date: Thu, 23 Jan 2025 22:05:15 +0100 Subject: [PATCH] Update assertion --- clio.tests/Command/FeatureCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clio.tests/Command/FeatureCommand.cs b/clio.tests/Command/FeatureCommand.cs index 9933d4a..a72fd25 100644 --- a/clio.tests/Command/FeatureCommand.cs +++ b/clio.tests/Command/FeatureCommand.cs @@ -83,10 +83,10 @@ public void Execute_ShouldClearCacheAndLogResult(string featureName){ //Act _sut.ClearCache("ActivateAdvancedModeForOriginalSchemas"); - Thread.Sleep(1000); //Loger need 300ms to flush its cache, thus we sleep + Thread.Sleep(300); //Logger need 300ms to flush its cache, thus we sleep //Assert - _textWriter.ToString().Should().Be($"[INF] - {responseBody}\r\n"); + _textWriter.ToString().Should().Contain($"[INF] - {responseBody}\r\n"); } } \ No newline at end of file