Skip to content

Commit

Permalink
Bug 35575377 - Build: intermittent failure in ViewDistProcessorTests.…
Browse files Browse the repository at this point in the history
…updateAfterExpiry()

updateAfterExpiry() - use assertDeferred
(auto-submit 101558 after successfully running remote remote.full)
Job ID: job.9.20230703183728.21922
(auto-submit integ 101560 main -> coherence-ce/main after successfully running remote remote.full)
Job ID: job.9.20230711155206.19909
(auto-submit integ 101650 coherence-ce/main -> coherence-ce/release/coherence-ce-v23.03 after successfully running remote remote.full)
Job ID: job.9.20230713133916.17037

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v23.03/": change = 101747]
  • Loading branch information
fryp committed Jul 13, 2023
1 parent 952082c commit 677b3d6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
Expand Down Expand Up @@ -174,13 +174,13 @@ public void updateAfterExpiry()
new ExpiryProcessor(ExpiryProcessor.Mode.UPDATE_AFTER_BIN, 1L);
cache.invoke("key", processor);

Eventually.assertThat(invoking(cache).isEmpty(), is(true));
Eventually.assertDeferred(cache::isEmpty, is(true));

// ensure setting the expiry & value for a non-existent entry
// functions as expected
cache.invoke("key2", new ExpiryProcessor(ExpiryProcessor.Mode.UPDATE_AFTER, 750L));
assertEquals("value2", cache.get("key2"));
Eventually.assertThat(invoking(cache).isEmpty(), is(true));
Eventually.assertDeferred(cache::isEmpty, is(true));
}

/**
Expand Down

0 comments on commit 677b3d6

Please sign in to comment.