Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add 'ipfs dht findprovs --num-providers' to allow choosing number of providers to find #3966
I was looking for ways to add tests to findProviders command when new option --num-providers is given. But could not find a good example on existing commands to test options.
One possibility is to use a mocking library to mock the Node, but I didn't want to introduce new library dependencies for such a trivial change.
Please advice if new tests are needed.