Skip to content

Commit bdf1ae0

Browse files
committed
Bug 38000313 - Build: intermittent failure in ReadWriteBackingMapTests.testCacheStoreExpireOnPutAllWithWriteBehind (14.1.1.0 cl 117006 --> 14.1.1.0 CE)
[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.1.0/": change = 117051]
1 parent eb21b92 commit bdf1ae0

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

prj/test/functional/rwbm/src/test/java/rwbm/ReadWriteBackingMapTests.java

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
@@ -1616,7 +1616,7 @@ public void testGetAllEmptyCache()
16161616
@Test
16171617
public void testCacheStoreExpireOnPutWithWriteThrough()
16181618
{
1619-
testCacheStoreExpire("dist-rwbm-wt-bin", 1000, false);
1619+
testCacheStoreExpire("dist-rwbm-wt-bin", EXPIRY_MILLIS, false);
16201620
}
16211621

16221622
/**
@@ -1625,7 +1625,7 @@ public void testCacheStoreExpireOnPutWithWriteThrough()
16251625
@Test
16261626
public void testCacheStoreExpireOnPutAllWithWriteThrough()
16271627
{
1628-
testCacheStoreExpire("dist-rwbm-wt-bin", 1000, true);
1628+
testCacheStoreExpire("dist-rwbm-wt-bin", EXPIRY_MILLIS, true);
16291629
}
16301630

16311631
/**
@@ -1634,8 +1634,8 @@ public void testCacheStoreExpireOnPutAllWithWriteThrough()
16341634
@Test
16351635
public void testCacheStoreExpireOnPutWithWriteBehind()
16361636
{
1637-
testCacheStoreExpire("dist-rwbm-wb-bin", 1000, false);
1638-
testCacheStoreExpire("dist-rwbm-wb-bin-remove", 1000, false);
1637+
testCacheStoreExpire("dist-rwbm-wb-bin", EXPIRY_MILLIS, false);
1638+
testCacheStoreExpire("dist-rwbm-wb-bin-remove", EXPIRY_MILLIS, false);
16391639
}
16401640

16411641
/**
@@ -1644,8 +1644,8 @@ public void testCacheStoreExpireOnPutWithWriteBehind()
16441644
@Test
16451645
public void testCacheStoreExpireOnPutAllWithWriteBehind()
16461646
{
1647-
testCacheStoreExpire("dist-rwbm-wb-bin", 1000, true);
1648-
testCacheStoreExpire("dist-rwbm-wb-bin-remove", 1000, true);
1647+
testCacheStoreExpire("dist-rwbm-wb-bin", EXPIRY_MILLIS, true);
1648+
testCacheStoreExpire("dist-rwbm-wb-bin-remove", EXPIRY_MILLIS, true);
16491649
}
16501650

16511651
private void testCacheStoreExpire(String sCacheName, long cExpiryMillis, boolean fUsePutAll)
@@ -2227,8 +2227,8 @@ public void testConfigWbRemove()
22272227
@Test
22282228
public void testExpiringProcessor()
22292229
{
2230-
testExpiringProcessor("dist-rwbm-wt-bin", 1000);
2231-
testExpiringProcessor("dist-rwbm-wb-bin", 1000);
2230+
testExpiringProcessor("dist-rwbm-wt-bin", EXPIRY_MILLIS);
2231+
testExpiringProcessor("dist-rwbm-wb-bin", EXPIRY_MILLIS);
22322232
}
22332233

22342234
private void testExpiringProcessor(String sCacheName, long cExpiry)
@@ -3529,6 +3529,11 @@ public static void main(String[] asArg)
35293529
*/
35303530
public static String FILE_CFG_CACHE = "rwbm-cache-config.xml";
35313531

3532+
/**
3533+
* The default expiry time.
3534+
*/
3535+
public static final int EXPIRY_MILLIS = 2000;
3536+
35323537
// ----- data members ---------------------------------------------------
35333538

35343539
/**

0 commit comments

Comments
 (0)