Skip to content

Commit fb2a389

Browse files
HIVE-29393: Added a null check for Catalog in tearDownAll method
1 parent 4b11df1 commit fb2a389

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

standalone-metastore/metastore-rest-catalog/src/test/java/org/apache/iceberg/rest/BaseRESTViewCatalogTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ void setup() {
4848

4949
@AfterAll
5050
void teardownAll() throws Exception {
51-
catalog.close();
51+
if (catalog != null) {
52+
catalog.close();
53+
}
5254
}
5355

5456
@Override

standalone-metastore/metastore-rest-catalog/src/test/java/org/apache/iceberg/rest/TestRESTViewCatalogSimpleAuth.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class TestRESTViewCatalogSimpleAuth extends BaseRESTViewCatalogTests {
3535
@Override
3636
protected Map<String, String> getDefaultClientConfiguration() {
3737
return Map.of(
38-
"uri", REST_CATALOG_EXTENSION.getRestEndpoint(),
39-
"header.x-actor-username", "USER_1"
38+
"uri", REST_CATALOG_EXTENSION.getRestEndpoint(),
39+
"header.x-actor-username", "USER_1"
4040
);
4141
}
4242
}

0 commit comments

Comments
 (0)