Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Apr 5, 2023
1 parent 70aea51 commit 08369b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p2p/host/autonat/autonat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,10 @@ func TestAutoNATDialRefused(t *testing.T) {
}

connect(t, hs, hc)
expectEvent(t, s, network.ReachabilityPublic, 3*time.Second)
expectEvent(t, s, network.ReachabilityPublic, 10*time.Second)

hs.SetStreamHandler(AutoNATProto, sayRefusedStreamHandler(t))
hps := makeAutoNATRefuseDialRequest(t)
defer hps.Close()

connect(t, hps, hc)
identifyAsServer(hps, hc)

Expand Down

0 comments on commit 08369b6

Please sign in to comment.