ibessonov commented on code in PR #2319:
URL: https://github.com/apache/ignite-3/pull/2319#discussion_r1263674262
##########
modules/core/src/test/java/org/apache/ignite/internal/causality/IncrementalVersionedValueTest.java:
##########
@@ -341,6 +344,51 @@ void testCompleteMultipleFutures() {
assertThat(future3, willBe(2));
}
+ /**
+ * Tests that {@link
IncrementalVersionedValue#dependingOn(IncrementalVersionedValue)} provides
causality between 2 different values.
+ */
+ @RepeatedTest(100)
+ public void testDependingOn() {
+ var vv0 = new IncrementalVersionedValue<>(register, () -> 1);
+
+ var vv1 = new IncrementalVersionedValue<>(dependingOn(vv0), () -> 1);
+
+ int token = 1;
+
+ vv0.update(token, (i, e) -> completedFuture(i + 1));
+
+ vv1.update(token, (i, e) -> completedFuture(i + 1));
+
+ register.moveRevision(token);
Review Comment:
Ok, I'll do it
--
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]