Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear committed Aug 21, 2024
1 parent 389845e commit ecec0dc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
public class StreamInputTests extends ESTestCase {

private StreamInput in = Mockito.spy(StreamInput.class);

{
try {
Mockito.when(in.skip(anyLong())).thenAnswer(a -> a.getArguments()[0]);
} catch (IOException e) {
throw new AssertionError(e);
}
}

byte[] bytes = "0123456789".getBytes(UTF_8);

public void testCalculateByteLengthOfAscii() throws IOException {
Expand Down

0 comments on commit ecec0dc

Please sign in to comment.