Skip to content

Fix formatting issues #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ FodyWeavers.xsd
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/.runsettings
*.code-workspace

# Local History for Visual Studio Code
Expand Down
10 changes: 10 additions & 0 deletions .vscode/.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<RunSettings>
<RunConfiguration>
<EnvironmentVariables>
<!-- List of environment variables we want to set-->
<REDIS_VERSION>7.4.0</REDIS_VERSION>
</EnvironmentVariables>
</RunConfiguration>
</RunSettings>
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dotnet-test-explorer.testArguments": "/p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info",
"dotnet-test-explorer.testProjectPath": "**/*NRedisStack.Tests.csproj",
"dotnet.defaultSolution": "NRedisStack.sln"
"dotnet.defaultSolution": "NRedisStack.sln",
"dotnet.unitTests.runSettingsPath": ".vscode/.runsettings"
}
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/Bloom/BloomTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void TestInfo(string endpointId)
var info = bf.Info(key);

Assert.NotNull(info);
Assert.Equal(info.NumberOfItemsInserted, (long)1);
Assert.Equal((long)1, info.NumberOfItemsInserted);

Assert.Throws<RedisServerException>(() => bf.Info("notExistKey"));
}
Expand All @@ -255,7 +255,7 @@ public async Task TestInfoAsync(string endpointId)
var info = await bf.InfoAsync(key);

Assert.NotNull(info);
Assert.Equal(info.NumberOfItemsInserted, (long)1);
Assert.Equal((long)1, info.NumberOfItemsInserted);

await Assert.ThrowsAsync<RedisServerException>(() => bf.InfoAsync("notExistKey"));
}
Expand Down
32 changes: 16 additions & 16 deletions tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ public void TestInfo(string endpointId)
var info = cf.Info(key);

Assert.NotNull(info);
Assert.Equal(info.BucketSize, (long)2);
Assert.Equal(info.ExpansionRate, (long)1);
Assert.Equal(info.MaxIterations, (long)20);
Assert.Equal(info.NumberOfBuckets, (long)512);
Assert.Equal(info.NumberOfFilters, (long)1);
Assert.Equal(info.NumberOfItemsDeleted, (long)0);
Assert.Equal(info.NumberOfItemsInserted, (long)1);
Assert.Equal(info.Size, (long)1080);
Assert.Equal((long)2, info.BucketSize);
Assert.Equal((long)1, info.ExpansionRate);
Assert.Equal((long)20, info.MaxIterations);
Assert.Equal((long)512, info.NumberOfBuckets);
Assert.Equal((long)1, info.NumberOfFilters);
Assert.Equal((long)0, info.NumberOfItemsDeleted);
Assert.Equal((long)1, info.NumberOfItemsInserted);
Assert.Equal((long)1080, info.Size);

Assert.Throws<RedisServerException>(() => cf.Info("notExistKey"));
}
Expand All @@ -215,14 +215,14 @@ public async Task TestInfoAsync(string endpointId)
var info = await cf.InfoAsync(key);

Assert.NotNull(info);
Assert.Equal(info.BucketSize, (long)2);
Assert.Equal(info.ExpansionRate, (long)1);
Assert.Equal(info.MaxIterations, (long)20);
Assert.Equal(info.NumberOfBuckets, (long)512);
Assert.Equal(info.NumberOfFilters, (long)1);
Assert.Equal(info.NumberOfItemsDeleted, (long)0);
Assert.Equal(info.NumberOfItemsInserted, (long)1);
Assert.Equal(info.Size, (long)1080);
Assert.Equal((long)2, info.BucketSize);
Assert.Equal((long)1, info.ExpansionRate);
Assert.Equal((long)20, info.MaxIterations);
Assert.Equal((long)512, info.NumberOfBuckets);
Assert.Equal((long)1, info.NumberOfFilters);
Assert.Equal((long)0, info.NumberOfItemsDeleted);
Assert.Equal((long)1, info.NumberOfItemsInserted);
Assert.Equal((long)1080, info.Size);



Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/Examples/ExampleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public async Task PipelineWithAsync(string endpointId)
selectedLabels: new List<string> { "location" });

// Assert the response
Assert.Equal(1, response.Count);
Assert.Single(response);
Assert.Equal("temp:JLM", response[0].key);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/Json/JsonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ public void TestMultiPathGet(string endpointId)
}
else
{
Assert.True(false, "$..a was not a json array");
Assert.Fail("$..a was not a json array");
}

Assert.True(obj["$.b"]![0]!["a"]!.ToString() == "world");
Expand All @@ -1015,7 +1015,7 @@ public async Task TestMultiPathGetAsync(string endpointId)
}
else
{
Assert.True(false, "$..a was not a json array");
Assert.Fail("$..a was not a json array");
}

Assert.True(obj["$.b"]![0]!["a"]!.ToString() == "world");
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/Search/SearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
var ft = db.FT();
Schema sc = new Schema();
sc.AddTextField("name", 1.0, sortable: true);
ft.Create(index, FTCreateParams.CreateParams(), sc);

Check failure on line 67 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatim(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1288-957(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=11,QueuedItems=0,CompletedItems=21080,Timers=22), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 67 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatim(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 4, cur-in: 0, sync-ops: 8, async-ops: 2, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1964-759(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=11,QueuedItems=0,CompletedItems=38220,Timers=206), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 67 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatim(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1314-617(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=15,QueuedItems=0,CompletedItems=66296,Timers=195), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 67 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatim(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1344-290(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=9,QueuedItems=0,CompletedItems=58983,Timers=135), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)
AddDocument(db, new Document("data1").Set("name", "hello kitty"));

AggregationRequest r = new AggregationRequest("kitti");
Expand All @@ -87,7 +87,7 @@
var ft = db.FT();
Schema sc = new Schema();
sc.AddTextField("name", 1.0, sortable: true);
ft.Create(index, FTCreateParams.CreateParams(), sc);

Check failure on line 90 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatimAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.02, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1288-957(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=13,QueuedItems=0,CompletedItems=15543,Timers=84), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 90 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatimAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.02, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1964-759(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=21,QueuedItems=0,CompletedItems=27978,Timers=214), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 90 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatimAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1314-617(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=23,QueuedItems=0,CompletedItems=55356,Timers=163), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 90 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestAggregationRequestVerbatimAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1344-290(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=17,QueuedItems=0,CompletedItems=51038,Timers=177), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)
AddDocument(db, new Document("data1").Set("name", "hello kitty"));

AggregationRequest r = new AggregationRequest("kitti");
Expand Down Expand Up @@ -652,7 +652,7 @@
SearchResult noFilters = ft.Search(index, new Query());
Assert.Equal(5, noFilters.TotalResults);

SearchResult asOriginal = ft.Search(index, new Query("@first:Jo*"));

Check failure on line 655 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.CreateWithFieldNames(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown field at offset 0 near first

Check failure on line 655 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.CreateWithFieldNames(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown field at offset 0 near first
Assert.Equal(0, asOriginal.TotalResults);

SearchResult asAttribute = ft.Search(index, new Query("@given:Jo*"));
Expand Down Expand Up @@ -684,7 +684,7 @@
SearchResult noFilters = await ft.SearchAsync(index, new Query());
Assert.Equal(5, noFilters.TotalResults);

SearchResult asOriginal = await ft.SearchAsync(index, new Query("@first:Jo*"));

Check failure on line 687 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.CreateWithFieldNamesAsync(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown field at offset 0 near first

Check failure on line 687 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.CreateWithFieldNamesAsync(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown field at offset 0 near first
Assert.Equal(0, asOriginal.TotalResults);

SearchResult asAttribute = await ft.SearchAsync(index, new Query("@given:Jo*"));
Expand Down Expand Up @@ -1531,7 +1531,7 @@
.AddTextField("f1", 1.0)
.AddTextField("f2", 1.0)
.AddTextField("f3", 1.0);
ft.Create(index, FTCreateParams.CreateParams(), sc);

Check failure on line 1534 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCli(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 2, serverEndpoint: localhost:16381, conn-sec: 10.02, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1288-957(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=18013,Timers=96), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1534 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCli(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.02, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1964-759(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=11,QueuedItems=0,CompletedItems=31836,Timers=186), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1534 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCli(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1314-617(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=15,QueuedItems=0,CompletedItems=58749,Timers=175), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1534 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCli(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1344-290(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=9,QueuedItems=0,CompletedItems=54223,Timers=115), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)


var res = ft.ExplainCli(index, explainQuery);
Expand All @@ -1554,7 +1554,7 @@
.AddTextField("f1", 1.0)
.AddTextField("f2", 1.0)
.AddTextField("f3", 1.0);
ft.Create(index, FTCreateParams.CreateParams(), sc);

Check failure on line 1557 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCliAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.03, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1288-957(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=20231,Timers=10), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1557 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCliAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1964-759(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=8,QueuedItems=0,CompletedItems=35517,Timers=194), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1557 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCliAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1314-617(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=14,QueuedItems=0,CompletedItems=63647,Timers=183), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

Check failure on line 1557 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M02; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestExplainCliAsync(endpointId: "cluster")

StackExchange.Redis.RedisTimeoutException : Timeout performing FT.CREATE (10000ms), next: FT.CREATE, inst: 0, qu: 0, qs: 1, aw: False, bw: Inactive, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 2, cur-in: 0, sync-ops: 8, async-ops: 1, serverEndpoint: localhost:16381, conn-sec: 10.01, aoc: 1, mc: 1/1/0, mgr: 10 of 10 available, clientName: fv-az1344-290(SE.Redis-v2.8.24.3255), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=4,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=56995,Timers=123), v: 2.8.24.3255 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)


var res = await ft.ExplainCliAsync(index, explainQuery);
Expand Down Expand Up @@ -1879,7 +1879,7 @@
var q1 = new Query("foo").AddFilter(new Query.NumericFilter("num", 0, 2));
var q2 = new Query("foo").AddFilter(new Query.NumericFilter("num", 2, true, double.MaxValue, false));
q1.NoContent = q2.NoContent = true;
var res1 = ft.Search("idx", q1);

Check failure on line 1882 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestFilters(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown argument `0` at position 4 for <main>

Check failure on line 1882 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestFilters(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown argument `0` at position 4 for <main>
var res2 = ft.Search("idx", q2);

Assert.Equal(1, res1.TotalResults);
Expand Down Expand Up @@ -1929,7 +1929,7 @@
var q1 = new Query("foo").AddFilter(new Query.NumericFilter("num", 0, 2));
var q2 = new Query("foo").AddFilter(new Query.NumericFilter("num", 2, true, double.MaxValue, false));
q1.NoContent = q2.NoContent = true;
var res1 = await ft.SearchAsync("idx", q1);

Check failure on line 1932 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 7.0;

NRedisStack.Tests.Search.SearchTests.TestFiltersAsync(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown argument `0` at position 4 for <main>

Check failure on line 1932 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestFiltersAsync(endpointId: "standalone")

StackExchange.Redis.RedisServerException : Unknown argument `0` at position 4 for <main>
var res2 = await ft.SearchAsync("idx", q2);

Assert.Equal(1, res1.TotalResults);
Expand Down Expand Up @@ -2170,7 +2170,7 @@
var req = new AggregationRequest("*").SortBy("@t1").Limit(1);
var res = ft.Aggregate("idx", req);

Assert.Equal(1, res.GetResults().Count);
Assert.Single(res.GetResults());
Assert.Equal("a", res.GetResults()[0]["t1"].ToString());
}

Expand All @@ -2190,7 +2190,7 @@
var req = new AggregationRequest("*").SortBy("@t1").Limit(1, 1);
var res = await ft.AggregateAsync("idx", req);

Assert.Equal(1, res.GetResults().Count);
Assert.Single(res.GetResults());
Assert.Equal("b", res.GetResults()[0]["t1"].ToString());
}

Expand Down Expand Up @@ -3419,7 +3419,7 @@
{
db.HashSet("student:1111", new HashEntry[] { new("first", "Joe"), new("last", "Dod"), new("age", 18) });

Assert.True(db.KeyExpire("student:1111", TimeSpan.FromMilliseconds(500)));

Check failure on line 3422 in tests/NRedisStack.Tests/Search/SearchTests.cs

View workflow job for this annotation

GitHub Actions / Redis 8.0-M03; .NET 6.0;

NRedisStack.Tests.Search.SearchTests.TestDocumentLoadWithDB_Issue352(endpointId: "standalone")

Assert.True() Failure Expected: True Actual: False

Boolean cancelled = false;
Task searchTask = Task.Run(() =>
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestAdd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ public void TestAddAndIgnoreValues(string endpointId)
RedisResult info = TimeSeriesHelper.getInfo(db, key, out j, out k);
Assert.NotNull(info);
Assert.True(info.Length > 0);
Assert.NotEqual(j, -1);
Assert.NotEqual(k, -1);
Assert.NotEqual(-1, j);
Assert.NotEqual(-1, k);
Assert.Equal(15, (long)info[j + 1]);
Assert.Equal(16, (long)info[k + 1]);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestAlter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public void TestAlterAndIgnoreValues(string endpointId)
RedisResult info = TimeSeriesHelper.getInfo(db, key, out j, out k);
Assert.NotNull(info);
Assert.True(info.Length > 0);
Assert.NotEqual(j, -1);
Assert.NotEqual(k, -1);
Assert.NotEqual(-1, j);
Assert.NotEqual(-1, k);
Assert.Equal(13, (long)info[j + 1]);
Assert.Equal(14, (long)info[k + 1]);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public void TestCreateAndIgnoreValues(string endpointId)
int j = -1, k = -1;
RedisResult info = TimeSeriesHelper.getInfo(db, key, out j, out k);

Assert.NotEqual(j, -1);
Assert.NotEqual(k, -1);
Assert.NotEqual(-1, j);
Assert.NotEqual(-1, k);
Assert.Equal(11, (long)info[j + 1]);
Assert.Equal(12, (long)info[k + 1]);
}
Expand Down
10 changes: 5 additions & 5 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestCreateAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task TestCreateUncompressed()
}

[Fact]
public async void TestCreatehDuplicatePolicyFirst()
public async Task TestCreatehDuplicatePolicyFirst()
{
var key = CreateKeyName();
var db = GetCleanDatabase();
Expand All @@ -80,7 +80,7 @@ public async void TestCreatehDuplicatePolicyFirst()
}

[Fact]
public async void TestCreatehDuplicatePolicyLast()
public async Task TestCreatehDuplicatePolicyLast()
{
var key = CreateKeyName();
var db = GetCleanDatabase();
Expand All @@ -89,7 +89,7 @@ public async void TestCreatehDuplicatePolicyLast()
}

[Fact]
public async void TestCreatehDuplicatePolicyMin()
public async Task TestCreatehDuplicatePolicyMin()
{
var key = CreateKeyName();
var db = GetCleanDatabase();
Expand All @@ -98,7 +98,7 @@ public async void TestCreatehDuplicatePolicyMin()
}

[Fact]
public async void TestCreatehDuplicatePolicyMax()
public async Task TestCreatehDuplicatePolicyMax()
{
var key = CreateKeyName();
var db = GetCleanDatabase();
Expand All @@ -107,7 +107,7 @@ public async void TestCreatehDuplicatePolicyMax()
}

[Fact]
public async void TestCreatehDuplicatePolicySum()
public async Task TestCreatehDuplicatePolicySum()
{
var key = CreateKeyName();
var db = GetCleanDatabase();
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestDecrBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public async void TestIncrDecryByAndIgnoreValues(string endpointId)
RedisResult info = TimeSeriesHelper.getInfo(db, key, out j, out k);
Assert.NotNull(info);
Assert.True(info.Length > 0);
Assert.NotEqual(j, -1);
Assert.NotEqual(k, -1);
Assert.NotEqual(-1, j);
Assert.NotEqual(-1, k);
Assert.Equal(15, (long)info[j + 1]);
Assert.Equal(16, (long)info[k + 1]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/TimeSeries/TestAPI/TestDel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void TestDelRange()

// check that the operation deleted the timestamps
IReadOnlyList<TimeSeriesTuple> res = ts.Range(key, from, to);
Assert.Equal(0, res.Count);
Assert.Empty(res);
Assert.NotNull(ts.Get(key));
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/TimeSeries/TestAPI/TestDelAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task TestDelRange()

// check that the operation deleted the timestamps
IReadOnlyList<TimeSeriesTuple> res = await ts.RangeAsync(key, from, to);
Assert.Equal(0, res.Count);
Assert.Empty(res);
Assert.NotNull(await ts.GetAsync(key));
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestIncrBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public async void TestIncrByAndIgnoreValues(string endpointId)
RedisResult info = TimeSeriesHelper.getInfo(db, key, out j, out k);
Assert.NotNull(info);
Assert.True(info.Length > 0);
Assert.NotEqual(j, -1);
Assert.NotEqual(k, -1);
Assert.NotEqual(-1, j);
Assert.NotEqual(-1, k);
Assert.Equal(15, (long)info[j + 1]);
Assert.Equal(16, (long)info[k + 1]);
}
Expand Down
28 changes: 14 additions & 14 deletions tests/NRedisStack.Tests/TimeSeries/TestAPI/TestMRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void TestSimpleMRange(string endpointId)
for (int i = 0; i < results.Count; i++)
{
Assert.Equal(_keys[i], results[i].key);
Assert.Equal(0, results[i].labels.Count);
Assert.Empty(results[i].labels);
Assert.Equal(tuples, results[i].values);
}
}
Expand Down Expand Up @@ -118,9 +118,9 @@ public void TestMRangeFilter(string endpointId)
ts.Create(_keys[0], labels: labels);
var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeFilter" });
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal(_keys[0], results[0].key);
Assert.Equal(0, results[0].labels.Count);
Assert.Empty(results[0].labels);
Assert.Equal(tuples, results[0].values);
}

Expand All @@ -144,7 +144,7 @@ public void TestMRangeCount(string endpointId)
for (int i = 0; i < results.Count; i++)
{
Assert.Equal(_keys[i], results[i].key);
Assert.Equal(0, results[i].labels.Count);
Assert.Empty(results[i].labels);
Assert.Equal(tuples.GetRange(0, (int)count), results[i].values);
}
}
Expand All @@ -168,7 +168,7 @@ public void TestMRangeAggregation(string endpointId)
for (int i = 0; i < results.Count; i++)
{
Assert.Equal(_keys[i], results[i].key);
Assert.Equal(0, results[i].labels.Count);
Assert.Empty(results[i].labels);
Assert.Equal(tuples, results[i].values);
}
}
Expand All @@ -189,7 +189,7 @@ public void TestMRangeAlign(string endpointId)
new TimeSeriesTuple(100,1)
};
var results = ts.MRange(0, "+", new List<string> { "key=MRangeAlign" }, align: "-", aggregation: TsAggregation.Count, timeBucket: 10, count: 3);
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal(_keys[0], results[0].key);
Assert.Equal(expected, results[0].values);
results = ts.MRange(1, 500, new List<string> { "key=MRangeAlign" }, align: "+", aggregation: TsAggregation.Count, timeBucket: 10, count: 1);
Expand Down Expand Up @@ -270,7 +270,7 @@ public void TestMRangeReduceSum(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.Sum));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "sum"), results[0].labels[1]);
Expand All @@ -295,7 +295,7 @@ public void TestMRangeReduceAvg(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.Avg));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "avg"), results[0].labels[1]);
Expand All @@ -320,7 +320,7 @@ public void TestMRangeReduceRange(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.Range));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "range"), results[0].labels[1]);
Expand All @@ -345,7 +345,7 @@ public void TestMRangeReduceCount(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.Count));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "count"), results[0].labels[1]);
Expand All @@ -370,7 +370,7 @@ public void TestMRangeReduceStdP(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.StdP));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "std.p"), results[0].labels[1]);
Expand All @@ -395,7 +395,7 @@ public void TestMRangeReduceStdS(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.StdS));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "std.s"), results[0].labels[1]);
Expand All @@ -420,7 +420,7 @@ public void TestMRangeReduceVarP(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.VarP));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "var.p"), results[0].labels[1]);
Expand All @@ -445,7 +445,7 @@ public void TestMRangeReduceVarS(string endpointId)

var tuples = CreateData(ts, 50);
var results = ts.MRange("-", "+", new List<string> { "key=MRangeReduce" }, withLabels: true, groupbyTuple: ("key", TsReduce.VarS));
Assert.Equal(1, results.Count);
Assert.Single(results);
Assert.Equal("key=MRangeReduce", results[0].key);
Assert.Equal(new TimeSeriesLabel("key", "MRangeReduce"), results[0].labels[0]);
Assert.Equal(new TimeSeriesLabel("__reducer__", "var.s"), results[0].labels[1]);
Expand Down
Loading
Loading