Skip to content

Commit b4851e8

Browse files
committed
Fix comment and remove non needed seq number
1 parent e1425e2 commit b4851e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/test/java/org/elasticsearch/action/delete/DeleteResponseTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public void testToAndFromXContent() throws IOException {
6868
assertNull(parser.nextToken());
6969
}
7070

71-
// We can't use equals() to compare the original and the parsed index response
72-
// because the random index response can contain shard failures with exceptions,
71+
// We can't use equals() to compare the original and the parsed delete response
72+
// because the random delete response can contain shard failures with exceptions,
7373
// and those exceptions are not parsed back with the same types.
7474

7575
// Print the parsed object out and test that the output is the same as the original output
@@ -92,7 +92,6 @@ private static DeleteResponse randomDeleteResponse() {
9292
ShardId shardId = new ShardId(randomAsciiOfLength(5), randomAsciiOfLength(5), randomIntBetween(0, 5));
9393
String type = randomAsciiOfLength(5);
9494
String id = randomAsciiOfLength(5);
95-
long seqNo = randomIntBetween(-2, 5);
9695
long version = (long) randomIntBetween(0, 5);
9796
boolean found = randomBoolean();
9897

0 commit comments

Comments
 (0)