Skip to content

Commit

Permalink
bigtable: fix integration test (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbernstein2 authored and pongad committed Jul 16, 2018
1 parent 203d74b commit af66c81
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import com.google.bigtable.admin.v2.InstanceName;
import com.google.bigtable.admin.v2.TableName;
import com.google.cloud.bigtable.admin.v2.TableAdminClient;
Expand Down Expand Up @@ -196,7 +197,7 @@ public void listTables() {
tableAdmin.createTable(TableAdminRequests.createTable(tableId));
List<TableName> tables = tableAdmin.listTables();
assertNotNull(tables);
assertEquals(1, tables.size());
assertFalse("List tables did not return any tables", tables.isEmpty());
} finally {
tableAdmin.deleteTable(tableId);
}
Expand All @@ -210,7 +211,7 @@ public void listTablesAsync() throws Exception {
tableAdmin.createTable(TableAdminRequests.createTable(tableId));
List<TableName> tables = tableAdmin.listTablesAsync().get();
assertNotNull(tables);
assertEquals(1, tables.size());
assertFalse("List tables did not return any tables", tables.isEmpty());
} finally {
tableAdmin.deleteTable(tableId);
}
Expand Down

0 comments on commit af66c81

Please sign in to comment.