mirror of
https://github.com/go-i2p/goSam.git
synced 2025-06-08 01:09:18 -04:00
tests: make it compatible with i2pd
This commit is contained in:
@ -25,8 +25,8 @@ func TestClientLookupInvalid(t *testing.T) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
t.Fatalf("client.Lookup() should return a ReplyError")
|
t.Fatalf("client.Lookup() should return a ReplyError")
|
||||||
}
|
}
|
||||||
if repErr.Result != ResultKeyNotFound {
|
if repErr.Result != ResultKeyNotFound && repErr.Result != ResultInvalidKey {
|
||||||
t.Errorf("client.Lookup() should throw an ResultKeyNotFound error.\nGot:%+v%s%s\n", repErr, "!=", ResultKeyNotFound)
|
t.Errorf("client.Lookup() should either throw an ResultKeyNotFound(i2p) or ResultInvalidKey(i2pd) error.\nGot:%+v%s%s\n", repErr, "!=", ResultKeyNotFound)
|
||||||
}
|
}
|
||||||
if err := client.Close(); err != nil {
|
if err := client.Close(); err != nil {
|
||||||
t.Fatalf("client.Close() Error: %q\n", err)
|
t.Fatalf("client.Close() Error: %q\n", err)
|
||||||
|
Reference in New Issue
Block a user