mirror of https://github.com/libp2p/go-libp2p.git
Steven Allen
3 years ago
committed by
GitHub
2 changed files with 20 additions and 1 deletions
@ -0,0 +1,15 @@ |
|||
package config |
|||
|
|||
import ( |
|||
"testing" |
|||
|
|||
"github.com/libp2p/go-libp2p-core/peer" |
|||
"github.com/libp2p/go-libp2p-core/transport" |
|||
) |
|||
|
|||
func TestTransportVariadicOptions(t *testing.T) { |
|||
_, err := TransportConstructor(func(_ peer.ID, _ ...int) transport.Transport { return nil }) |
|||
if err != nil { |
|||
t.Fatal(err) |
|||
} |
|||
} |
Loading…
Reference in new issue