Fix federation node-pairing tests

This commit is contained in:
Denis Arh
2022-01-22 16:32:51 +01:00
parent f9c8066e2d
commit ef0588f365
3 changed files with 5 additions and 6 deletions
-4
View File
@@ -180,10 +180,6 @@ func TestSuccessfulNodePairing(t *testing.T) {
service.DefaultNode.SetHandshaker(&mockNodeHandshake{
init: func(ctx context.Context, n *types.Node, authToken string) error {
h.apiInit().
Debug().
// make sure we do not use test auth-token for authentication but
// we do it with pairing token
Intercept(helpers.ReqHeaderRawAuthBearer([]byte(n.AuthToken))).
Post(fmt.Sprintf("/nodes/%d/handshake", n.SharedNodeID)).
FormData("pairToken", n.PairToken).
FormData("authToken", authToken).