mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-04 05:43:06 +00:00
increase travis friendliness for new tests
This commit is contained in:
parent
741b7e9b41
commit
8d89949131
@ -1057,7 +1057,7 @@ func TestPubsubWithAssortedOptions(t *testing.T) {
|
||||
hosts := getNetHosts(t, ctx, 2)
|
||||
psubs := getPubsubs(ctx, hosts,
|
||||
WithMessageIdFn(hashMsgID),
|
||||
WithPeerOutboundQueueSize(1),
|
||||
WithPeerOutboundQueueSize(10),
|
||||
WithMessageAuthor(""),
|
||||
WithBlacklist(NewMapBlacklist()))
|
||||
|
||||
@ -1072,7 +1072,7 @@ func TestPubsubWithAssortedOptions(t *testing.T) {
|
||||
subs = append(subs, sub)
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(time.Second)
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
msg := []byte(fmt.Sprintf("message %d", i))
|
||||
|
||||
@ -214,9 +214,9 @@ func TestValidateAssortedOptions(t *testing.T) {
|
||||
|
||||
hosts := getNetHosts(t, ctx, 10)
|
||||
psubs := getPubsubs(ctx, hosts,
|
||||
WithValidateQueueSize(1),
|
||||
WithValidateThrottle(1),
|
||||
WithValidateWorkers(1))
|
||||
WithValidateQueueSize(10),
|
||||
WithValidateThrottle(10),
|
||||
WithValidateWorkers(10))
|
||||
|
||||
sparseConnect(t, hosts)
|
||||
|
||||
@ -255,7 +255,7 @@ func TestValidateAssortedOptions(t *testing.T) {
|
||||
subs2 = append(subs2, sub)
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(time.Second)
|
||||
|
||||
for i := 0; i < 10; i++ {
|
||||
msg := []byte(fmt.Sprintf("message %d", i))
|
||||
@ -328,7 +328,7 @@ func TestValidateMultitopic(t *testing.T) {
|
||||
subs3 = append(subs2, sub)
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(time.Second)
|
||||
|
||||
msg1 := "i am a walrus"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user