From dd9715e6d66822f656710ef4d9cab93ecd47f4ca Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 1 Jul 2021 21:16:08 +0000 Subject: [PATCH] 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. --- src/test/java/org/ldk/HumanObjectPeerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5