- err := testSimultaneousOpen(
- c.Cleanup,
- getDial(first, "localhost:3001"),
- getDial(second, "localhost:3000"),
- )
- c.Assert(err, qt.ErrorIs, errMsgNotReceived)
+ t.Logf("first addr is %v. second addr is %v", first.Addr().String(), second.Addr().String())
+ for range iter.N(10) {
+ err := testSimultaneousOpen(
+ c.Cleanup,
+ getDial(first, second.Addr().String()),
+ getDial(second, first.Addr().String()),
+ )
+ if err == nil {
+ t.Fatal("expected utp to fail simultaneous open")
+ }
+ if errors.Is(err, errMsgNotReceived) {
+ return
+ }
+ skipGoUtpDialIssue(t, err)
+ t.Log(err)
+ time.Sleep(time.Second)
+ }
+ t.FailNow()