You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2022/12/19 21:14:24 UTC

[cassandra] 02/04: Ninja for CASSANDRA-17719: Changed AsyncWriterTest#commandsPerKeyDenormalization to use SaveStatus rather than Status

This is an automated email from the ASF dual-hosted git repository.

dcapwell pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 74602f57347579e6fd6436328f1157e3185c6066
Author: David Capwell <dc...@apache.org>
AuthorDate: Fri Dec 16 12:46:57 2022 -0800

    Ninja for CASSANDRA-17719: Changed
    AsyncWriterTest#commandsPerKeyDenormalization to use SaveStatus rather
    than Status
---
 .../org/apache/cassandra/service/accord/async/AsyncWriterTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/unit/org/apache/cassandra/service/accord/async/AsyncWriterTest.java b/test/unit/org/apache/cassandra/service/accord/async/AsyncWriterTest.java
index 9d2e1e5a2b..3e148498ce 100644
--- a/test/unit/org/apache/cassandra/service/accord/async/AsyncWriterTest.java
+++ b/test/unit/org/apache/cassandra/service/accord/async/AsyncWriterTest.java
@@ -26,6 +26,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
 import accord.local.Command;
+import accord.local.SaveStatus;
 import accord.local.Status;
 import accord.primitives.Ranges;
 import accord.primitives.Timestamp;
@@ -147,7 +148,7 @@ public class AsyncWriterTest
         AccordCommand command = new AccordCommand(txnId).initialize();
         command.setPartialTxn(txn.slice(ranges, true));
         command.setExecuteAt(executeAt);
-        command.setStatus(Status.Accepted);
+        command.setSaveStatus(SaveStatus.AcceptedWithDefinition);
         AsyncContext context = new AsyncContext();
         context.commands.add(command);
         save(commandStore, context);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org