test(outputs.sql): further wait for clickhouse writes (#12086)

This commit is contained in:
Joshua Powers 2022-10-24 01:17:57 -06:00 committed by GitHub
parent d45c7c44c7
commit dd802531ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -394,12 +394,13 @@ func TestClickHouseIntegration(t *testing.T) {
" --database=" + dbname +
" --format=TabSeparatedRaw" +
" --multiquery --query=" +
"\"SELECT * FROM \\\"metric three\\\"\";",
"\"SELECT * FROM \\\"metric three\\\";" +
"SHOW CREATE TABLE \\\"metric three\\\"\"",
})
require.NoError(t, err)
bytes, err := io.ReadAll(out)
require.NoError(t, err)
return strings.Contains(string(bytes), "!2021-05-17 22:04:45 tag4 string2")
return strings.Contains(string(bytes), "`string two` String")
}, 5*time.Second, 10*time.Millisecond)
// dump the database