Skip to content

Commit

Permalink
Whops. Ignored the wrong test. Changed it now.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Nov 18, 2023
1 parent 7d964f9 commit 6b678e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/jssc/SerialNativeInterfaceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public void reportsWriteErrorsAsIOException() throws Exception {

@Test
public void throwsNpeIfPassedBufferIsNull() throws Exception {
assumeFalse(SerialNativeInterface.getOsType() == SerialNativeInterface.OS_WINDOWS);

long fd = 1;
byte[] buf = null;
try{
Expand All @@ -75,6 +73,8 @@ public void throwsNpeIfPassedBufferIsNull() throws Exception {

@Test
public void throwsIllegalArgumentExceptionIfPortHandleIllegal() throws Exception {
assumeFalse(SerialNativeInterface.getOsType() == SerialNativeInterface.OS_WINDOWS);

try{
testTarget.readBytes(999, 42);
fail("Where is the exception?");
Expand Down

0 comments on commit 6b678e3

Please sign in to comment.