projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mock posts with a mocker, too.
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
FcpInterfaceTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java
b/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java
index
12b820d
..
bbbf509
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java
+++ b/
src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java
@@
-315,10
+315,13
@@
public class FcpInterfaceTest {
if (r == -1) {
return offset == data.length;
}
if (r == -1) {
return offset == data.length;
}
- readData[offset] = (byte) r;
- if (data[offset++] != r) {
+ if (offset == data.length) {
return false;
}
return false;
}
+ if (data[offset] != (readData[offset] = (byte) r)) {
+ return false;
+ }
+ offset++;
}
} catch (IOException ioe1) {
return false;
}
} catch (IOException ioe1) {
return false;