Skip to content

Commit 8c81989

Browse files
committed
fix test
1 parent 4f47288 commit 8c81989

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/rest/action/ingest/RestPutPipelineActionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public boolean wasInvoked() {
9494

9595
public void testNumericIfVersionValue() {
9696
Map<String, String> params = new HashMap<>();
97-
final long numericValue = randomLong();
97+
final int numericValue = randomInt();
9898
params.put("id", "my_pipeline");
99-
params.put("if_version", Long.toString(numericValue));
99+
params.put("if_version", Integer.toString(numericValue));
100100

101101
RestRequest request = new FakeRestRequest.Builder(xContentRegistry())
102102
.withMethod(RestRequest.Method.PUT)

0 commit comments

Comments
 (0)