Skip to content

Commit 54519f0

Browse files
authored
.Net: Fixing CodeQL failure (#12172)
### Description Fixing CodeQL build error: ``` PostgresEmbeddingTypeTests.cs(48,36): error CS0121: The call is ambiguous between the following methods or properties: 'BitArray.BitArray(bool[])' and 'BitArray.BitArray(BitArray)' ``` ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
1 parent 03f0aba commit 54519f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/VectorDataIntegrationTests/PgVectorIntegrationTests/PostgresEmbeddingTypeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public virtual Task Array_of_Half()
4545

4646
[ConditionalFact]
4747
public virtual Task BitArray()
48-
=> this.Test<BitArray>(new BitArray([true, false, true]), distanceFunction: DistanceFunction.HammingDistance, embeddingGenerator: null);
48+
=> this.Test<BitArray>(new BitArray(new bool[] { true, false, true }), distanceFunction: DistanceFunction.HammingDistance, embeddingGenerator: null);
4949

5050
[ConditionalFact]
5151
public virtual Task SparseVector()

0 commit comments

Comments
 (0)