Skip to content

Commit ece0d58

Browse files
authored
Merge branch 'master' into dependabot/nuget/coverlet.msbuild-6.0.4
2 parents b2c814b + 082ba9d commit ece0d58

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

.github/actions/run-tests/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ runs:
109109
echo "${{inputs.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_ca.pem
110110
echo "${{inputs.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_user.crt
111111
echo "${{inputs.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_user_private.key
112+
REDIS_VERSION=$(echo "$REDIS_VERSION" | cut -d'-' -f1)
113+
echo $REDIS_VERSION
112114
dotnet test -f ${CLR_VERSION} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover -p:BuildInParallel=false tests/Test.proj --logger GitHubActions
113115
echo "::endgroup::"
114116
- name: Codecov

.github/workflows/integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,8 @@ jobs:
106106
shell: cmd
107107
env:
108108
REDIS_VERSION: ${{env.redis_stack_version}}
109-
run: |
109+
run: |
110+
rem Extract part of the version before the '-' character
111+
for /f "tokens=1 delims=-" %%a in ("%REDIS_VERSION%") do set REDIS_VERSION=%%a
112+
echo %REDIS_VERSION%
110113
dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions

src/NRedisStack/Search/SearchCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public InfoResult Info(RedisValue index) =>
134134
[Obsolete("Consider using ProfileOnSearch with Redis CE 8.0 and later")]
135135
public Tuple<SearchResult, Dictionary<string, RedisResult>> ProfileSearch(string indexName, Query q, bool limited = false)
136136
{
137+
setDefaultDialectIfUnset(q);
137138
return _db.Execute(SearchCommandBuilder.ProfileSearch(indexName, q, limited))
138139
.ToProfileSearchResult(q);
139140
}

src/NRedisStack/Search/SearchCommandsAsync.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public async Task<InfoResult> InfoAsync(RedisValue index) =>
165165
[Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")]
166166
public async Task<Tuple<SearchResult, Dictionary<string, RedisResult>>> ProfileSearchAsync(string indexName, Query q, bool limited = false)
167167
{
168+
setDefaultDialectIfUnset(q);
168169
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileSearch(indexName, q, limited)))
169170
.ToProfileSearchResult(q);
170171
}
@@ -179,6 +180,7 @@ public async Task<Tuple<SearchResult, ProfilingInformation>> ProfileOnSearchAsyn
179180
[Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")]
180181
public async Task<Tuple<AggregationResult, Dictionary<string, RedisResult>>> ProfileAggregateAsync(string indexName, AggregationRequest query, bool limited = false)
181182
{
183+
setDefaultDialectIfUnset(query);
182184
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileAggregate(indexName, query, limited)))
183185
.ToProfileAggregateResult(query);
184186
}

tests/NRedisStack.Tests/Search/SearchTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,6 @@ public void AlterAdd(string endpointId)
751751
Assert.True(info.OffsetsPerTermAvg > 0.8);
752752
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
753753
Assert.Equal(0, info.HashIndexingFailures);
754-
Assert.True(info.TotalIndexingTime > 0);
755754
Assert.Equal(0, info.Indexing);
756755
Assert.Equal(1, info.PercentIndexed);
757756
Assert.Equal(4, info.NumberOfUses);
@@ -813,7 +812,6 @@ public async Task AlterAddAsync(string endpointId)
813812
Assert.True(info.OffsetsPerTermAvg > 0.8);
814813
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
815814
Assert.Equal(0, info.HashIndexingFailures);
816-
Assert.True(info.TotalIndexingTime > 0);
817815
Assert.Equal(0, info.Indexing);
818816
Assert.Equal(1, info.PercentIndexed);
819817
Assert.Equal(4, info.NumberOfUses);
@@ -877,7 +875,6 @@ public void AlterAddSortable(string endpointId)
877875
Assert.True(info.OffsetsPerTermAvg > 0.8);
878876
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
879877
Assert.Equal(0, info.HashIndexingFailures);
880-
Assert.True(info.TotalIndexingTime > 0);
881878
Assert.Equal(0, info.Indexing);
882879
Assert.Equal(1, info.PercentIndexed);
883880
Assert.Equal(4, info.NumberOfUses);
@@ -974,7 +971,6 @@ public async Task AlterAddSortableAsync(string endpointId)
974971
Assert.True(info.OffsetsPerTermAvg > 0.8);
975972
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
976973
Assert.Equal(0, info.HashIndexingFailures);
977-
Assert.True(info.TotalIndexingTime > 0);
978974
Assert.Equal(0, info.Indexing);
979975
Assert.Equal(1, info.PercentIndexed);
980976
Assert.Equal(4, info.NumberOfUses);

tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public SkippableTheoryDiscoverer(IMessageSink diagnosticMessageSink)
4242
public virtual IEnumerable<IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute)
4343
{
4444
Requires.NotNull(factAttribute, nameof(factAttribute));
45-
string[] skippingExceptionNames = new[] { "Xunit.SkippableFact.SkipException" };
45+
string[] skippingExceptionNames = new[] { "Xunit.SkippableFact.SkipException", "Xunit.SkipException" };
4646
TestMethodDisplay defaultMethodDisplay = discoveryOptions.MethodDisplayOrDefault();
4747

4848
IEnumerable<IXunitTestCase>? basis = this.theoryDiscoverer.Discover(discoveryOptions, testMethod, factAttribute);

0 commit comments

Comments
 (0)