adutra commented on code in PR #3788:
URL: https://github.com/apache/polaris/pull/3788#discussion_r2813518087


##########
runtime/service/src/test/java/org/apache/polaris/service/catalog/iceberg/AbstractIcebergCatalogTest.java:
##########
@@ -293,32 +278,6 @@ public void before(TestInfo testInfo) {
     QuarkusMock.installMockForType(realmContext, RealmContext.class);

Review Comment:
   You probably could replace this mock with:
   
   ```java
     @Inject RealmContextHolder realmContextHolder;
   
     @BeforeEach
     public void before(TestInfo testInfo) {
       ...
       RealmContext realmContext = () -> realmName;
       realmContextHolder.set(realmContext);
     }
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to