Skip to content

[BUG] Flaky vector Test #2712

@JKamsker

Description

@JKamsker

Test VectorIndex_HandlesVectorsSpanningMultipleDataBlocks_PersistedUpdate seems to be flaky. Need to look into it - seems like the test itself is borked

https://github.com/litedb-org/LiteDB/actions/runs/18365794709/job/52318344767?pr=2708

2025-10-09T04:47:17.7418883Z   Failed LiteDB.Tests.QueryTest.VectorIndex_Tests.VectorIndex_HandlesVectorsSpanningMultipleDataBlocks_PersistedUpdate [983 ms]
2025-10-09T04:47:17.7419556Z   Error Message:
2025-10-09T04:47:17.7419876Z    Expected mapped.Id to be 2, but found 12 (difference of 10).
2025-10-09T04:47:17.7420218Z   Stack Trace:
2025-10-09T04:47:17.7420587Z      at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
2025-10-09T04:47:17.7421165Z    at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
2025-10-09T04:47:17.7421803Z    at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
2025-10-09T04:47:17.7422696Z    at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
2025-10-09T04:47:17.7423353Z    at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
2025-10-09T04:47:17.7424037Z    at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
2025-10-09T04:47:17.7424827Z    at FluentAssertions.Numeric.NumericAssertions`2.Be(T expected, String because, Object[] becauseArgs)
2025-10-09T04:47:17.7426094Z    at LiteDB.Tests.QueryTest.VectorIndex_Tests.VectorIndex_HandlesVectorsSpanningMultipleDataBlocks_PersistedUpdate() in /home/runner/work/LiteDB/LiteDB/LiteDB.Tests/Query/VectorIndex_Tests.cs:line 921
2025-10-09T04:47:17.7427844Z    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
2025-10-09T04:47:17.7428704Z    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions