Skip to content

Commit dd9715e

Browse files
author
Matt Corallo
committed
Test that channel_manager_bytes is not null when persisting
We had an apparently-spurious report that this was the case, though it doesn't seem to be.
1 parent 17731f1 commit dd9715e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/ldk/HumanObjectPeerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private void bind_nio() {
298298
pending_manager_events.notifyAll();
299299
}
300300
}
301-
@Override public void persist_manager(byte[] channel_manager_bytes) { }
301+
@Override public void persist_manager(byte[] channel_manager_bytes) { assert channel_manager_bytes.length > 1; }
302302
});
303303
this.chan_manager = constructor.channel_manager;
304304
this.peer_manager = constructor.peer_manager;
@@ -331,7 +331,7 @@ private void bind_nio() {
331331
pending_manager_events.notifyAll();
332332
}
333333
}
334-
@Override public void persist_manager(byte[] channel_manager_bytes) { }
334+
@Override public void persist_manager(byte[] channel_manager_bytes) { assert channel_manager_bytes.length > 1; }
335335
});
336336
this.chan_manager = constructor.channel_manager;
337337
this.peer_manager = constructor.peer_manager;

0 commit comments

Comments
 (0)