diff --git a/Memstate.Benchmarks/MemstateBenchmarks.cs b/Memstate.Benchmarks/MemstateBenchmarks.cs index 1a592ce..4bc16bc 100644 --- a/Memstate.Benchmarks/MemstateBenchmarks.cs +++ b/Memstate.Benchmarks/MemstateBenchmarks.cs @@ -21,7 +21,7 @@ public class MemstateBenchmarks private Set _setCommand; [Params( - typeof(InMemoryStorageProvider), + typeof(InMemoryStorageProvider), // todo: eventstore hangs, investigate. looks like recordnumber problem // typeof(EventStoreProvider), typeof(PostgresqlProvider))] @@ -30,7 +30,6 @@ public class MemstateBenchmarks [GlobalSetup] public void Setup() { - var settings = new Settings().WithRandomStreamName(); /* @@ -48,6 +47,12 @@ public void Setup() _setCommand = new Set("Key", 42); } + [GlobalCleanup] + public void Cleanup() + { + _engine.Dispose(); + } + [Benchmark] public async Task CommandRoundtrip() {