flaky integration test when cluster is replicated
integration test test_change_cache_by_config_replica
can fail because of replication delay. we need to be sure that space is created on storage-replica before query execution to avoid flaky result. see error below
Failed tests:
-------------
1) configuration.sql_cache.test_change_cache_by_config_replica
...d-cartridge/test_app/test/integration/sql_cache_test.lua:39: expected: nil, actual: Sbroad Error: Lua error (dispatch IR): LuaError(ExecutionError("Sbroad Error: Failed to execute the query: LuaError(ExecutionError(\"Space 'space_for_breake_cache' does not exist\"))"))
stack traceback:
...d-cartridge/test_app/test/integration/sql_cache_test.lua:39: in function 'configuration.sql_cache.test_change_cache_by_config_replica'
...
[C]: in function 'xpcall'
to get this error run script:
#!/bin/bash
iter=0
while true
do
((iter=iter+1))
echo $iter
make test_integration
if [ $? -ne 0 ]; then
break
fi
sleep 3
done