test(outputs.sql): further wait for clickhouse writes (#12086)
This commit is contained in:
parent
d45c7c44c7
commit
dd802531ef
|
|
@ -394,12 +394,13 @@ func TestClickHouseIntegration(t *testing.T) {
|
||||||
" --database=" + dbname +
|
" --database=" + dbname +
|
||||||
" --format=TabSeparatedRaw" +
|
" --format=TabSeparatedRaw" +
|
||||||
" --multiquery --query=" +
|
" --multiquery --query=" +
|
||||||
"\"SELECT * FROM \\\"metric three\\\"\";",
|
"\"SELECT * FROM \\\"metric three\\\";" +
|
||||||
|
"SHOW CREATE TABLE \\\"metric three\\\"\"",
|
||||||
})
|
})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
bytes, err := io.ReadAll(out)
|
bytes, err := io.ReadAll(out)
|
||||||
require.NoError(t, err)
|
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)
|
}, 5*time.Second, 10*time.Millisecond)
|
||||||
|
|
||||||
// dump the database
|
// dump the database
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue