Commit 4b65e760 authored by Nick Craver's avatar Nick Craver

SWAPDB: don't test against 3.x

parent aa57a367
......@@ -140,6 +140,11 @@ public RedisFeatures(Version version)
/// </summary>
public bool StringSetRange => Version >= v2_1_8;
/// <summary>
/// Is SWAPDB available?
/// </summary>
public bool SwapDB => Version >= v4_0_0;
/// <summary>
/// Does TIME exist?
/// </summary>
......
......@@ -88,6 +88,8 @@ public async Task SwapDatabases()
{
using (var muxer = Create(allowAdmin: true))
{
Skip.IfMissingFeature(muxer, nameof(RedisFeatures.SwapDB), r => r.SwapDB);
RedisKey key = Me();
var db0id = TestConfig.GetDedicatedDB(muxer);
var db0 = muxer.GetDatabase(db0id);
......@@ -122,6 +124,8 @@ public async Task SwapDatabasesAsync()
{
using (var muxer = Create(allowAdmin: true))
{
Skip.IfMissingFeature(muxer, nameof(RedisFeatures.SwapDB), r => r.SwapDB);
RedisKey key = Me();
var db0id = TestConfig.GetDedicatedDB(muxer);
var db0 = muxer.GetDatabase(db0id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment