Skip to content
Snippets Groups Projects
Commit a17cd6a1 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed tests

parent b78ce5f6
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,8 @@ func ConfirmRequestAuth(partner contact.Contact, rng io.Reader,
// verify the passed contact matches what is stored
if storedContact.DhPubKey.Cmp(partner.DhPubKey) != 0 {
storage.Auth().Fail(partner.ID)
return errors.Errorf("Pending Auth Request has different "+
"pubkey than stored",
err)
return errors.WithMessage(err, "Pending Auth Request has different "+
"pubkey than stored")
}
grp := storage.E2e().GetGroup()
......
......@@ -17,11 +17,10 @@ import (
"gitlab.com/elixxir/client/interfaces/message"
"gitlab.com/elixxir/client/interfaces/utility"
"gitlab.com/elixxir/comms/mixmessages"
ds "gitlab.com/elixxir/comms/network/dataStructures"
"gitlab.com/elixxir/primitives/states"
"gitlab.com/xx_network/primitives/id"
"time"
ds "gitlab.com/elixxir/comms/network/dataStructures"
)
// BindingsClient wraps the api.Client, implementing additional functions
......
......@@ -2,8 +2,8 @@ package contact
import (
"github.com/pkg/errors"
"strings"
jww "github.com/spf13/jwalterweatherman"
"strings"
)
type FactList []Fact
......
......@@ -7,7 +7,7 @@ import (
func TestGetDefaultCMIX(t *testing.T) {
c := GetDefaultCMIX()
if c.RoundTries != 3 || c.Timeout != 10*time.Second {
if c.RoundTries != 3 || c.Timeout != 25*time.Second {
t.Errorf("GetDefaultCMIX did not return expected values")
}
}
......@@ -325,7 +325,7 @@ func (s *Store) GetRequest(partner *id.ID) (RequestType, *SentRequest, contact.C
return Receive, nil, *r.receive, nil
default:
return 0, nil, contact.Contact{},
errors.Errorf("invalid Type: %s", r.rt)
errors.Errorf("invalid Type: %d", r.rt)
}
}
......
......@@ -111,6 +111,7 @@ func LoadStore(kv *versioned.KV, myID *id.ID, rng *fastRNG.StreamGenerator) (*St
fingerprints: &fingerprints,
kv: kv,
grp: grp,
context: &context{
fa: &fingerprints,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment