Skip to content

Commit

Permalink
Enable the flaky metadata test again
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtjasmin committed Oct 31, 2023
1 parent be4ed46 commit 0687a38
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Anexia.E5E.Exceptions;
using Anexia.E5E.Hosting;
using Anexia.E5E.Runtime;
using Anexia.E5E.Serialization;

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Expand All @@ -28,14 +29,14 @@ public void IncorrectListOfArgumentsThrowsException()
E5EApplication.CreateBuilder(new[] { "foo", "bar" }).Build());
}

[Fact(Timeout = 3000, Skip = "The test is flaky, sometimes the debug logs are leaking and sometimes not.")]
[Fact]
public void MetadataIsReturned()
{
using var _ = Console.Out;
using var sw = new StringWriter();
Console.SetOut(sw);

var expected = JsonSerializer.Serialize(new E5ERuntimeMetadata());
var expected = JsonSerializer.Serialize(new E5ERuntimeMetadata(), E5EJsonSerializerOptions.Default);
E5EApplication.CreateBuilder(new[] { "metadata" }).Build().Run();

Assert.Equal(expected, sw.ToString());
Expand Down

0 comments on commit 0687a38

Please sign in to comment.