Fix CLI test

Original commit: elastic/x-pack-elasticsearch@8a31108b09
This commit is contained in:
Costin Leau 2018-01-18 22:33:47 +02:00
parent fbb7654c58
commit e48589aa65
1 changed files with 4 additions and 3 deletions

View File

@ -134,10 +134,11 @@ public class CliSecurityIT extends SqlSecurityTestCase {
assertThat(tablesOutput, containsString("type"));
assertEquals("---------------+---------------", cli.readLine());
for (String table : tables) {
String line = cli.readLine();
if (!line.startsWith(".security")) {
assertThat(line, containsString(table));
String line = null;
while (line == null || line.startsWith(".security")) {
line = cli.readLine();
}
assertThat(line, containsString(table));
}
assertEquals("", cli.readLine());
}