diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 55dac7f84c57..25ce3a7928a1 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -657,8 +657,8 @@ public void testListPartitions() { .setTimePartitioning(timePartitioning) .build(); TableInfo tableInfo = TableInfo.of(TableId.of(DATASET, tableName), tableDefinition); - Table createdPartitioningTable = bigquery.create(tableInfo); - assertNotNull(createdPartitioningTable); + Table partitionedTable = bigquery.create(tableInfo); + assertNotNull(partitionedTable); try { Map row = new HashMap(); row.put("StringField", "StringValue"); @@ -669,7 +669,7 @@ public void testListPartitions() { List partitions = bigquery.listPartitions(TableId.of(DATASET, tableName)); assertEquals(1, partitions.size()); } finally { - createdPartitioningTable.delete(); + partitionedTable.delete(); } }