mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-19 20:53:04 +08:00
commands: Fixed tests
This commit is contained in:

committed by
Juan Batiz-Benet

parent
c575b5087a
commit
1e8719e7f4
@ -15,7 +15,7 @@ func TestOptionValidation(t *testing.T) {
|
||||
req.options["foo"] = 5
|
||||
res := cmd.Call(req)
|
||||
if res.Error == nil {
|
||||
t.Error("Should have failed (unrecognized command)")
|
||||
t.Error("Should have failed (unrecognized option)")
|
||||
}
|
||||
|
||||
req = NewRequest()
|
||||
@ -37,7 +37,7 @@ func TestOptionValidation(t *testing.T) {
|
||||
req.options["beep"] = 5
|
||||
res = cmd.Call(req)
|
||||
if res.Error != nil {
|
||||
t.Error("Should have passed")
|
||||
t.Error(res.Error, "Should have passed")
|
||||
}
|
||||
|
||||
req = NewRequest()
|
||||
|
Reference in New Issue
Block a user