Skip to content

Commit 2e27958

Browse files
committed
CNDB-15291: use correct response verb in AbstractReadResponseTest
1 parent ab17081 commit 2e27958

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/org/apache/cassandra/service/reads/AbstractReadResponseTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
import org.apache.cassandra.utils.ByteBufferUtil;
7777
import org.apache.cassandra.utils.FBUtilities;
7878

79-
import static org.apache.cassandra.net.Verb.READ_REQ;
79+
import static org.apache.cassandra.net.Verb.READ_RSP;
80+
import static org.apache.cassandra.net.Verb.RANGE_RSP;
8081

8182
/**
8283
* Base class for testing various components which deal with read responses
@@ -249,7 +250,7 @@ static Message<ReadResponse> response(ReadCommand command,
249250
ReadResponse response = isDigestResponse
250251
? ReadResponse.createDigestResponse(data, command)
251252
: ReadResponse.createRemoteDataResponse(data, repairedDataDigest, hasPendingRepair, command, fromVersion);
252-
return Message.builder(READ_REQ, response)
253+
return Message.builder(command.isRangeRequest() ? RANGE_RSP : READ_RSP, response)
253254
.from(from)
254255
.build();
255256
}

0 commit comments

Comments
 (0)