mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-05 16:17:12 +08:00

* Updated relay example to use circuit-v2 * fixed incorrect import * updated test fixture * upgrade dependencies * merged upstream * Implemented suggested changes in upstream PR * Implemented suggested changes in upstream PR
19 lines
444 B
Go
19 lines
444 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/libp2p/go-libp2p/examples/testutils"
|
|
)
|
|
|
|
func TestMain(t *testing.T) {
|
|
if os.Getenv("CI") != "" {
|
|
t.Skip("This test is flaky on CI, see https://github.com/libp2p/go-libp2p/issues/1158.")
|
|
}
|
|
var h testutils.LogHarness
|
|
h.ExpectPrefix("As suspected we cannot directly dial between the unreachable hosts")
|
|
h.ExpectPrefix("Awesome! We're now communicating via the relay!")
|
|
h.Run(t, run)
|
|
}
|