diff --git a/android/bridge/src/androidTest/java/ipfs/gomobile/android/requestIPFSTests.java b/android/bridge/src/androidTest/java/ipfs/gomobile/android/requestIPFSTests.java index d8ae7de7..05e3c325 100644 --- a/android/bridge/src/androidTest/java/ipfs/gomobile/android/requestIPFSTests.java +++ b/android/bridge/src/androidTest/java/ipfs/gomobile/android/requestIPFSTests.java @@ -66,13 +66,13 @@ public void testDNSRequest() throws Exception { @Test public void testCatFile() throws Exception { byte[] latestRaw = ipfs.newRequest("cat") - .withArgument("/ipns/xkcd.hacdias.com/latest/info.json") + .withArgument("/ipfs/Qme7ss3ARVgxv6rXqVPiikMJ8u2NLgmgszg13pYrDKEoiu") .send(); - try { - new JSONObject(new String(latestRaw)); - } catch (JSONException e) { - fail("error while parsing fetched JSON: " + new String(latestRaw)); - } + assertEquals( + "response should have the correct length", + 12435, + latestRaw.length + ); } }