mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-06 08:37:29 +08:00
14 lines
193 B
Go
14 lines
193 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(swarm)
|
|
}
|