Skip to content

Commit

Permalink
fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shacharPash committed Sep 27, 2023
1 parent a353196 commit 2c5dab6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/Examples/ExampleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace NRedisStack.Tests;
public class ExampleTests : AbstractNRedisStackTest, IDisposable
{
private readonly ITestOutputHelper testOutputHelper;
private readonly string key = "EXAMPLES_TESTS";
// private readonly string key = "EXAMPLES_TESTS";
public ExampleTests(RedisFixture redisFixture, ITestOutputHelper testOutputHelper) : base(redisFixture)
{
this.testOutputHelper = testOutputHelper;
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/Gears/GearsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace NRedisStack.Tests.Gears;

public class GearsTests : AbstractNRedisStackTest, IDisposable
{
private readonly string key = "GEARS_TESTS";
// private readonly string key = "GEARS_TESTS";
public GearsTests(RedisFixture redisFixture) : base(redisFixture) { }

[SkipIfRedis(Comparison.LessThan, "7.1.242")]
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/Graph/GraphTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace NRedisStack.Tests.Graph;

public class GraphTests : AbstractNRedisStackTest, IDisposable
{
private readonly string key = "GRAPH_TESTS";
// private readonly string key = "GRAPH_TESTS";
public GraphTests(RedisFixture redisFixture) : base(redisFixture) { }

#region SyncTests
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/Json/JsonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace NRedisStack.Tests;

public class JsonTests : AbstractNRedisStackTest, IDisposable
{
private readonly string _testName = "JSON_TESTS";
// private readonly string _testName = "JSON_TESTS";
public JsonTests(RedisFixture redisFixture) : base(redisFixture) { }

[Fact]
Expand Down
1 change: 1 addition & 0 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestAddAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public async Task TestAddWithLabels()
}

[Fact]
[Obsolete]
public async Task TestAddWithChunkSize()
{
var key = CreateKeyName();
Expand Down
8 changes: 5 additions & 3 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestDecrByAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public async Task TestDecrByTimeStamp()
}

[Fact]
[Obsolete]
public async Task TestDefaultDecrByWithRetentionTime()
{
var key = CreateKeyName();
Expand All @@ -62,13 +63,14 @@ public async Task TestDefaultDecrByWithRetentionTime()
Assert.True(await ts.DecrByAsync(key, -value, retentionTime: retentionTime) > 0);

var result = await ts.GetAsync(key);
Assert.Equal(value, result.Val);
Assert.Equal(value, result!.Val);

var info = await ts.InfoAsync(key);
Assert.Equal(retentionTime, info.RetentionTime);
}

[Fact]
[Obsolete]
public async Task TestDefaultDecrByWithLabels()
{
var key = CreateKeyName();
Expand All @@ -81,7 +83,7 @@ public async Task TestDefaultDecrByWithLabels()
Assert.True(await ts.DecrByAsync(key, -value, labels: labels) > 0);

var result = await ts.GetAsync(key);
Assert.Equal(value, result.Val);
Assert.Equal(value, result!.Val);

var info = await ts.InfoAsync(key);
Assert.Equal(labels, info.Labels);
Expand All @@ -98,7 +100,7 @@ public async Task TestDefaultDecrByWithUncompressed()
Assert.True(await ts.DecrByAsync(key, -value, uncompressed: true) > 0);

var result = await ts.GetAsync(key);
Assert.Equal(value, result.Val);
Assert.Equal(value, result!.Val);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/TimeSeries/TimeSeriesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace NRedisStack.Tests.TimeSeries;

public class TimeSeriesTests : AbstractNRedisStackTest, IDisposable
{
private readonly string key = "TIME_SERIES_TESTS";
// private readonly string key = "TIME_SERIES_TESTS";
public TimeSeriesTests(RedisFixture redisFixture) : base(redisFixture) { }

// [Fact]
Expand Down

0 comments on commit 2c5dab6

Please sign in to comment.