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

Conversation

aphelionz
Copy link
Contributor

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

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`
@achingbrain achingbrain changed the title block.rm: remove second greaterThanZero check chore: remove second greaterThanZero check from block.rm test Apr 14, 2020
@achingbrain achingbrain merged commit 73d8fbb into ipfs:master Apr 14, 2020
@aphelionz aphelionz deleted the patch-2 branch April 14, 2020 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants