Auto stash before merge of "main" and "origin/main"

This commit is contained in:
Janus C. H. Knudsen 2025-02-27 17:41:21 +01:00
parent 104187fcac
commit 33912cf4ef
9 changed files with 226 additions and 50 deletions

View file

@ -50,7 +50,7 @@ namespace PlanTempus.Tests.Logging
// wait for processing
await Task.Delay(5000);
_cts.Cancel();
_cts.Cancel(); //not sure about this, we need to analyse more before this is "the way"
await _service.StopAsync(CancellationToken.None);
@ -67,11 +67,5 @@ namespace PlanTempus.Tests.Logging
return Task.FromResult(new HttpResponseMessage(System.Net.HttpStatusCode.OK));
}
}
[TestCleanup]
public void Cleanup()
{
_cts?.Dispose();
}
}
}

View file

@ -52,19 +52,10 @@ namespace PlanTempus.Tests.Logging
// wait for processing
await Task.Delay(5000);
//_cts.Cancel();
await _service.StopAsync(CancellationToken.None);
bool hasMoreMessages = await _messageChannel.Reader.WaitToReadAsync();
Assert.IsFalse(hasMoreMessages, "Queue should be empty after 5 seconds");
}
[TestCleanup]
public void Cleanup()
{
_cts?.Dispose();
}
}
}