mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-06 14:53:07 +00:00
Increase timeout in TestSubscribeMultipleTimes
Increase delay to 10ms; makes go test -race happy.
This commit is contained in:
parent
0ec8f2fa08
commit
99a4f9e5ed
@ -252,7 +252,7 @@ func (p *PubSub) announce(topic string, sub bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// notifySubs sends a given message to all corresponding subscribbers.
|
||||
// notifySubs sends a given message to all corresponding subscribers.
|
||||
// Only called from processLoop.
|
||||
func (p *PubSub) notifySubs(msg *pb.Message) {
|
||||
for _, topic := range msg.GetTopicIDs() {
|
||||
|
||||
@ -524,7 +524,7 @@ func TestSubscribeMultipleTimes(t *testing.T) {
|
||||
}
|
||||
|
||||
// make sure subscribing is finished by the time we publish
|
||||
time.Sleep(1 * time.Millisecond)
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
|
||||
psubs[1].Publish("foo", []byte("bar"))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user