This is an automated email from the ASF dual-hosted git repository.
yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new a87e8be268 [#8861] Improve(test): fix testPolicyAndTagCacheWeigher
(#8862)
a87e8be268 is described below
commit a87e8be2686f1f7e430306b442be457f9db10b96
Author: Junda Yang <[email protected]>
AuthorDate: Tue Oct 21 02:37:04 2025 -0700
[#8861] Improve(test): fix testPolicyAndTagCacheWeigher (#8862)
### What changes were proposed in this pull request?
Bump timeout from 5 seconds to 10 seconds
### Why are the changes needed?
```
TestCacheConfig > testPolicyAndTagCacheWeigher() FAILED
org.awaitility.core.ConditionTimeoutException: Condition with Lambda
expression in org.apache.gravitino.cache.TestCacheConfig was not fulfilled
within 5 seconds.
at
app//org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at
app//org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
at
app//org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
at
app//org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1006)
at
app//org.awaitility.core.ConditionFactory.until(ConditionFactory.java:975)
at
app//org.apache.gravitino.cache.TestCacheConfig.testPolicyAndTagCacheWeigher(TestCacheConfig.java:162)
```
see failure:
https://github.com/apache/gravitino/actions/runs/18668130387/job/53223578211?pr=8859
Fix: #8861
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Updated unit tests
---
core/src/test/java/org/apache/gravitino/cache/TestCacheConfig.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/test/java/org/apache/gravitino/cache/TestCacheConfig.java
b/core/src/test/java/org/apache/gravitino/cache/TestCacheConfig.java
index 3944d9a282..675305ef91 100644
--- a/core/src/test/java/org/apache/gravitino/cache/TestCacheConfig.java
+++ b/core/src/test/java/org/apache/gravitino/cache/TestCacheConfig.java
@@ -157,7 +157,7 @@ public class TestCacheConfig {
// There should no tag entities in the cache, because the weight of each
tag entity is 100 that
// is higher than the maximum weight of the fileset entity which is 200.
Awaitility.await()
- .atMost(Duration.ofSeconds(5))
+ .atMost(Duration.ofSeconds(10))
.pollInterval(Duration.ofMillis(10))
.until(
() ->