From: Matt Corallo Date: Thu, 1 Jul 2021 21:16:08 +0000 (+0000) Subject: Test that channel_manager_bytes is not null when persisting X-Git-Tag: v0.0.98.5 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=8068c5c25c87d939a63529a9d7514d00416d271b;p=ldk-java 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. --- diff --git a/src/test/java/org/ldk/HumanObjectPeerTest.java b/src/test/java/org/ldk/HumanObjectPeerTest.java index c6a6f475..d93a6d39 100644 --- a/src/test/java/org/ldk/HumanObjectPeerTest.java +++ b/src/test/java/org/ldk/HumanObjectPeerTest.java @@ -298,7 +298,7 @@ class HumanObjectPeerTestInstance { pending_manager_events.notifyAll(); } } - @Override public void persist_manager(byte[] channel_manager_bytes) { } + @Override public void persist_manager(byte[] channel_manager_bytes) { assert channel_manager_bytes.length > 1; } }); this.chan_manager = constructor.channel_manager; this.peer_manager = constructor.peer_manager; @@ -331,7 +331,7 @@ class HumanObjectPeerTestInstance { pending_manager_events.notifyAll(); } } - @Override public void persist_manager(byte[] channel_manager_bytes) { } + @Override public void persist_manager(byte[] channel_manager_bytes) { assert channel_manager_bytes.length > 1; } }); this.chan_manager = constructor.channel_manager; this.peer_manager = constructor.peer_manager;