Skip to content

Flaky test on sbroad.execute("select")

Sometimes test integration_api.insert.test_insert_3 fails with error:

1) integration_api.insert.test_insert_3
...road-cartridge/test_app/test/integration/insert_test.lua:132: expected: 
{
    metadata = {
        {name = "id", type = "integer"},
        {name = "name", type = "string"},
        {name = "sysOp", type = "integer"},
        {name = "bucket_id", type = "unsigned"},
    },
    rows = {
        {1, "ok", 1, 3940},
        {5, cdata<void *>: NULL, 6, 6661},
        {10, cdata<void *>: NULL, 0, 11520},
        {4, cdata<void *>: NULL, 5, 27225},
    },
}
actual: 
{
    metadata = {
        {name = "id", type = "integer"},
        {name = "name", type = "string"},
        {name = "sysOp", type = "integer"},
        {name = "bucket_id", type = "unsigned"},
    },
    rows = {
        {1, "ok", 1, 3940},
        {10, cdata<void *>: NULL, 0, 11520},
        {4, cdata<void *>: NULL, 5, 27225},
    },
}

It can fail alone and together with other tests

To see flaky test just checkout to 298-flaky_test and execute script run_until_fail.sh. It will repeat test run until it fails.

Edited by Asya Lomakina