Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

chore: remove second greaterThanZero check from block.rm test #2983

Merged
merged 1 commit into from
Apr 14, 2020
Merged

chore: remove second greaterThanZero check from block.rm test #2983

merged 1 commit into from
Apr 14, 2020

Commits on Apr 14, 2020

  1. block.rm: remove second greaterThanZero check

    This PR removes the `expect(localRefsAfterRemove).to.have.property('length').that.is.greaterThan(0)` from line 42. The rationale here is that the `rs-ipfs` nodes start with a completely empty blockstore. Once only block added is removed, then it drops back to one again.
    
    This was imo the least obtrusive move I could make with the tests, the alternative could be to seed a cid2 within the test to ensure it was always `greaterThanZero`
    aphelionz authored Apr 14, 2020
    Configuration menu
    Copy the full SHA
    b9e4d40 View commit details
    Browse the repository at this point in the history