Skip to content

Commit

Permalink
test blockchain prune returning false
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 7, 2024
1 parent cfd70c5 commit c81c33e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/TestMoneroDaemonRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,11 @@ export default class TestMoneroDaemonRpc {
if (testConfig.testNonRelays)
it("Can prune the blockchain", async function() {
let result = await that.daemon.pruneBlockchain(true);
assert(result.getIsPruned());
assert(result.getPruningSeed() > 0);
if (result.getIsPruned()) {
assert(result.getPruningSeed() > 0);
} else {
assert.equal(result.getPruningSeed(), 0);
}
});

if (testConfig.testNonRelays)
Expand Down

0 comments on commit c81c33e

Please sign in to comment.