mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-05 16:17:12 +08:00
14 lines
196 B
Go
14 lines
196 B
Go
package testing
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGenSwarm(t *testing.T) {
|
|
swarm := GenSwarm(t)
|
|
require.NoError(t, swarm.Close())
|
|
GenUpgrader(t, swarm)
|
|
}
|