Skip to content

Commit

Permalink
version guard for novalues in ScanTests
Browse files Browse the repository at this point in the history
  • Loading branch information
atakavci committed Jun 13, 2024
1 parent d4c78a0 commit e0b6309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/StackExchange.Redis.Tests/HashTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public void Scan()
Assert.Equal("ghi=jkl", string.Join(",", v4.Select(pair => pair.Name + "=" + pair.Value)));
}


[Fact]
public async Task ScanNoValuesAsync()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/StackExchange.Redis.Tests/ScanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void HashScanNoValues(bool supported)
{
string[]? disabledCommands = supported ? null : new[] { "hscan" };

using var conn = Create(disabledCommands: disabledCommands);
using var conn = Create(require: RedisFeatures.v7_4_0_rc1, disabledCommands: disabledCommands);

RedisKey key = Me();
var db = conn.GetDatabase();
Expand Down Expand Up @@ -372,7 +372,7 @@ public void HashScanNoValues(bool supported)
[InlineData(10000)]
public void HashScanNoValuesLarge(int pageSize)
{
using var conn = Create();
using var conn = Create(require: RedisFeatures.v7_4_0_rc1);

RedisKey key = Me() + pageSize;
var db = conn.GetDatabase();
Expand Down

0 comments on commit e0b6309

Please sign in to comment.