You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "denis-chudov (via GitHub)" <gi...@apache.org> on 2023/06/02 11:37:10 UTC
[GitHub] [ignite-3] denis-chudov commented on a diff in pull request #2124: IGNITE-19593 Optimized update assignments routine to start multiple tables at the same time.
denis-chudov commented on code in PR #2124:
URL: https://github.com/apache/ignite-3/pull/2124#discussion_r1214256957
##########
modules/core/src/test/java/org/apache/ignite/internal/causality/CompletableVersionedValueTest.java:
##########
@@ -267,6 +267,18 @@ public void testDefaultValue() throws Exception {
assertEquals(TEST_VALUE, fut2.get());
}
+ @Test
+ public void testLatest() {
+ CompletableVersionedValue<Integer> vv = new CompletableVersionedValue<>();
+
+ assertEquals(-1, vv.latestCausalityToken());
+
+ vv.complete(1, 10);
+
+ assertEquals(10, vv.latest());
+ assertEquals(1, vv.latestCausalityToken());
Review Comment:
```suggestion
assertEquals(1, vv.latestCausalityToken());
vv.complete(2);
assertEquals(10, vv.latest());
assertEquals(2, vv.latestCausalityToken());
```
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org