Resolve Redis Client Connection Issue in Integration Test
- Resolves a race condition where a client instance is closed before it can be used by another test
This commit is contained in:
+5
@@ -145,5 +145,10 @@ public class RedisClient {
|
||||
log.error("Exception caught in flushAll", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public void destroyInstance() {
|
||||
jedisPool = null;
|
||||
instance = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user