Skip to content

Commit

Permalink
assert read ammount
Browse files Browse the repository at this point in the history
  • Loading branch information
vogievetsky committed Nov 29, 2023
1 parent 7859d5e commit 0ce8627
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void testProxyEnebledCheck() throws Exception

Assert.assertEquals(200, connection.getResponseCode());
byte[] bytes = new byte[connection.getContentLength()];
connection.getInputStream().read(bytes);
Assert.assertEquals(connection.getInputStream().read(bytes), connection.getContentLength());
Assert.assertEquals(ImmutableMap.of("enabled", true), new ObjectMapper().readValue(bytes, Map.class));
Assert.assertFalse("coordinator called", COORDINATOR_EXPECTED_REQUEST.called);
Assert.assertFalse("overlord called", OVERLORD_EXPECTED_REQUEST.called);
Expand Down

0 comments on commit 0ce8627

Please sign in to comment.