mirror of
https://github.com/libp2p/go-libp2p.git
synced 2026-04-23 00:27:05 +08:00
basichost: fix deadlock with addrs_manager (#3348)
This commit is contained in:
@@ -737,7 +737,7 @@ func TestHostAddrChangeDetection(t *testing.T) {
|
||||
lk.Lock()
|
||||
currentAddrSet = i
|
||||
lk.Unlock()
|
||||
h.addressManager.triggerAddrsUpdate()
|
||||
h.addressManager.updateAddrsSync()
|
||||
evt := waitForAddrChangeEvent(ctx, sub, t)
|
||||
if !updatedAddrEventsEqual(expectedEvents[i-1], evt) {
|
||||
t.Errorf("change events not equal: \n\texpected: %v \n\tactual: %v", expectedEvents[i-1], evt)
|
||||
|
||||
Reference in New Issue
Block a user