Skip to content

Commit

Permalink
NRediSearch: flush every test
Browse files Browse the repository at this point in the history
Fundamentally, JRediSearch is doing this, and bases test assumptions on it. To get back to a decent/matching state, we need to do the same.
  • Loading branch information
Nick Craver committed Oct 24, 2020
1 parent b634be8 commit ddc39d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/NRediSearch.Test/RediSearchTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ protected RediSearchTestBase(ITestOutputHelper output)
muxer = GetWithFT(output);
Output = output;
Db = muxer.GetDatabase();
var server = muxer.GetServer(muxer.GetEndPoints()[0]);
server.FlushDatabase();
}
private ConnectionMultiplexer muxer;
protected IDatabase Db { get; private set; }
Expand Down
4 changes: 2 additions & 2 deletions tests/RedisConfigs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '2.4'
version: '2.5'

services:
redisearch:
image: redislabs/redisearch
image: redislabs/redisearch:latest
ports:
- 6385:6379
redis:
Expand Down

0 comments on commit ddc39d1

Please sign in to comment.