Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parse_test.go #1193

Merged
merged 7 commits into from
May 4, 2015
Merged

Improve parse_test.go #1193

merged 7 commits into from
May 4, 2015

Conversation

chriscool
Copy link
Contributor

This improves go tests in parse_test.go so that it is easier to write more tests and tests are checking more things.

This will help if we want to fix issue #1141 (ipfs cat "multihash too short" error when using stdin).

License: MIT
Signed-off-by: Christian Couder <[email protected]>
License: MIT
Signed-off-by: Christian Couder <[email protected]>
Let's document how stdin enabled arguments currently
work by adding some tests.

License: MIT
Signed-off-by: Christian Couder <[email protected]>
Now also check that we get the right arguments from
the parsing.

License: MIT
Signed-off-by: Christian Couder <[email protected]>
License: MIT
Signed-off-by: Christian Couder <[email protected]>
License: MIT
Signed-off-by: Christian Couder <[email protected]>
License: MIT
Signed-off-by: Christian Couder <[email protected]>
@jbenet jbenet added the status/in-progress In progress label May 3, 2015
@chriscool
Copy link
Contributor Author

One of the test failure is:

expecting success: 
    export IPFS_PATH="$IPTB_ROOT/2" &&
    NODE1_ID=`iptb get id 1` &&
    ipfs name publish /ipns/$NODE1_ID
Error: routing: not found
not ok 4 - add an entry on another node pointing to that one

The other one is:

No output has been received in the last ... minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

@jbenet
Copy link
Member

jbenet commented May 3, 2015

@whyrusleeping whatever the reason, iptb keeps failing :( -- should we disable it until we have fixed it? (the only other test that fails this (or more) frequently atm is the daemon teardown bug which i haven't disabled because... that would disable most of sharness)

@jbenet
Copy link
Member

jbenet commented May 3, 2015

@chriscool sorry, those errors are unrelated. :(

does anybody know why travis fails so often with

No output has been received in the last ... minutes, this potentially indicates a stalled build or something wrong with the build itself. The build has been terminated
?

@jbenet
Copy link
Member

jbenet commented May 3, 2015

this LGTM. anyone looking at the cli want to comment?

@whyrusleeping
Copy link
Member

@jbenet i'm pretty sure the iptb test failures are caused by the daemon teardown bug (or at least, they have the same cause)

@whyrusleeping
Copy link
Member

this LGTM too!

jbenet added a commit that referenced this pull request May 4, 2015
@jbenet jbenet merged commit 9b12e02 into master May 4, 2015
@jbenet jbenet removed the status/in-progress In progress label May 4, 2015
@jbenet jbenet deleted the improve_parse_test branch May 4, 2015 22:15
@jbenet jbenet mentioned this pull request May 9, 2015
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants