Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Fix multi address in add peer test
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Mar 26, 2024
1 parent 5658a46 commit 6b87629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/docker-network/tests/api_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package tests

import (
"context"
"fmt"
"testing"
"time"

Expand Down Expand Up @@ -92,7 +93,8 @@ func Test_PeerManagementAPI(t *testing.T) {
{
name: "Re-Add the peer to node 1",
testFunc: func(t *testing.T) {
addedPeerInfo, err := managementClient.AddPeer(getContextWithTimeout(5*time.Second), string(removedPeerInfo.MultiAddresses[0]), removedPeerInfo.Alias)
multiAddr := fmt.Sprintf("%s/p2p/%s", removedPeerInfo.MultiAddresses[0], removedPeerInfo.ID)
addedPeerInfo, err := managementClient.AddPeer(getContextWithTimeout(5*time.Second), multiAddr, removedPeerInfo.Alias)
require.NoError(t, err)
require.NotNil(t, addedPeerInfo)
require.Equal(t, removedPeerInfo.ID, addedPeerInfo.ID)
Expand Down

0 comments on commit 6b87629

Please sign in to comment.