Skip to content

Commit

Permalink
Fix issue #24 for Postgres
Browse files Browse the repository at this point in the history
Call Engine.Dispose to abort the listener thread for Postgres notifications.
  • Loading branch information
hagbarddenstore committed Nov 2, 2017
1 parent 9313169 commit 6ae0dbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Memstate.Benchmarks/MemstateBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class MemstateBenchmarks
private Set<int> _setCommand;

[Params(
typeof(InMemoryStorageProvider),
typeof(InMemoryStorageProvider),
// todo: eventstore hangs, investigate. looks like recordnumber problem
// typeof(EventStoreProvider),
typeof(PostgresqlProvider))]
Expand All @@ -30,7 +30,6 @@ public class MemstateBenchmarks
[GlobalSetup]
public void Setup()
{

var settings = new Settings().WithRandomStreamName();

/*
Expand All @@ -48,6 +47,12 @@ public void Setup()
_setCommand = new Set<int>("Key", 42);
}

[GlobalCleanup]
public void Cleanup()
{
_engine.Dispose();
}

[Benchmark]
public async Task<int> CommandRoundtrip()
{
Expand Down

0 comments on commit 6ae0dbb

Please sign in to comment.