Using only Kafka stored data the tests fails
mariomastrodicasa opened this issue · comments
mariomastrodicasa commented
Describe the bug
If the test application does not recreate the Kafka topics the tests fails with Sequence contains no elements
To Reproduce
Steps to reproduce the behavior:
- Create a JSON configuration file named KNetReplicatorNoLoadTest.json with the following content:
{
"UseCompactedReplicator": true,
"DeleteApplicationData": false,
"LoadApplicationData": false,
"BootstrapServers": "KAFKA_CLUSTER:9092"
}
- Execute
MASES.EntityFrameworkCore.KNet.Test.exe .\KNetReplicatorNoLoadTest.json
- See error
Expected behavior
The test shall be executed without error retrieving previously data stored
Screenshots
N/A
Desktop (please complete the following information):
- OS: Windows 10
- Version: 0.8.0
Additional context
Attached the changed files in the test projects KEFCore.Test.zip
MASES Public Developers Team commented
Seems the problem is in this line of code
The code does not wait the synchronization of local data with associated topic.