mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 09:35:03 +09:00
fix blinking test
This commit is contained in:
parent
e929d5431d
commit
291b8daf5f
1 changed files with 6 additions and 2 deletions
|
@ -30,8 +30,12 @@ func TestYamuxTransport_Dial(t *testing.T) {
|
|||
|
||||
mcC, err := fxC.Dial(ctx, fxS.addr)
|
||||
require.NoError(t, err)
|
||||
require.Len(t, fxS.accepter.mcs, 1)
|
||||
mcS := <-fxS.accepter.mcs
|
||||
var mcS transport.MultiConn
|
||||
select {
|
||||
case mcS = <-fxS.accepter.mcs:
|
||||
case <-time.After(time.Second * 5):
|
||||
require.True(t, false, "timeout")
|
||||
}
|
||||
|
||||
var (
|
||||
sData string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue