Commit 09f66ed 1 parent 762df38 commit 09f66ed Copy full SHA for 09f66ed
File tree 1 file changed +3
-4
lines changed
open-api/src/testFixtures/java/org/apache/iceberg/rest
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package org .apache .iceberg .rest ;
20
20
21
- import static org .apache .iceberg .rest .RESTCatalogServer .REST_PORT ;
22
-
23
21
import java .util .Map ;
24
22
import org .apache .iceberg .relocated .com .google .common .collect .Maps ;
25
23
import org .junit .jupiter .api .extension .AfterAllCallback ;
@@ -41,8 +39,9 @@ public RESTServerExtension() {
41
39
42
40
public RESTServerExtension (Map <String , String > config ) {
43
41
Map <String , String > conf = Maps .newHashMap (config );
44
- if (conf .containsKey (REST_PORT ) && conf .get (REST_PORT ).equals (FREE_PORT )) {
45
- conf .put (REST_PORT , String .valueOf (RCKUtils .findFreePort ()));
42
+ if (conf .containsKey (RESTCatalogServer .REST_PORT )
43
+ && conf .get (RESTCatalogServer .REST_PORT ).equals (FREE_PORT )) {
44
+ conf .put (RESTCatalogServer .REST_PORT , String .valueOf (RCKUtils .findFreePort ()));
46
45
}
47
46
this .config = conf ;
48
47
}
You can’t perform that action at this time.
0 commit comments