Skip to content
Snippets Groups Projects
Commit 6faf3d7e authored by capossele's avatar capossele
Browse files

:arrow_up: updates gossip

parent e0bc9931
Branches
Tags
No related merge requests found
...@@ -6,11 +6,11 @@ import ( ...@@ -6,11 +6,11 @@ import (
"testing" "testing"
"time" "time"
pb "github.com/iotaledger/goshimmer/packages/gossip/proto"
"github.com/iotaledger/goshimmer/packages/gossip/transport"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"github.com/iotaledger/autopeering-sim/peer" "github.com/iotaledger/autopeering-sim/peer"
"github.com/iotaledger/autopeering-sim/peer/service" "github.com/iotaledger/autopeering-sim/peer/service"
pb "github.com/iotaledger/goshimmer/packages/gossip/proto"
"github.com/iotaledger/goshimmer/packages/gossip/transport"
"github.com/iotaledger/hive.go/events" "github.com/iotaledger/hive.go/events"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
...@@ -118,7 +118,7 @@ func TestClosedConnection(t *testing.T) { ...@@ -118,7 +118,7 @@ func TestClosedConnection(t *testing.T) {
eventMock.On("neighborDroppedEvent", &NeighborDroppedEvent{Peer: peerB}).Once() eventMock.On("neighborDroppedEvent", &NeighborDroppedEvent{Peer: peerB}).Once()
// A drops B // A drops B
err := mgrA.NeighborDropped(peerB.ID()) err := mgrA.DropNeighbor(peerB.ID())
require.NoError(t, err) require.NoError(t, err)
time.Sleep(graceTime) time.Sleep(graceTime)
......
...@@ -4,9 +4,9 @@ import ( ...@@ -4,9 +4,9 @@ import (
"bytes" "bytes"
"time" "time"
pb "github.com/iotaledger/goshimmer/packages/gossip/transport/proto"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"github.com/iotaledger/autopeering-sim/server" "github.com/iotaledger/autopeering-sim/server"
pb "github.com/iotaledger/goshimmer/packages/gossip/transport/proto"
) )
const ( const (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment