mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 15:23:08 +00:00
rename tests for consistency
This commit is contained in:
parent
eb1a1561c2
commit
a67441be61
@ -984,7 +984,7 @@ func TestGossipsubStarTopology(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGossipSubDirectPeers(t *testing.T) {
|
func TestGossipsubDirectPeers(t *testing.T) {
|
||||||
originalGossipSubDirectConnectTicks := GossipSubDirectConnectTicks
|
originalGossipSubDirectConnectTicks := GossipSubDirectConnectTicks
|
||||||
GossipSubDirectConnectTicks = 2
|
GossipSubDirectConnectTicks = 2
|
||||||
defer func() {
|
defer func() {
|
||||||
@ -1054,7 +1054,7 @@ func TestGossipSubDirectPeers(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGossipSubFloodPublish(t *testing.T) {
|
func TestGossipsubFloodPublish(t *testing.T) {
|
||||||
// uses a star topology without PX and publishes from the star to verify that all
|
// uses a star topology without PX and publishes from the star to verify that all
|
||||||
// messages get received
|
// messages get received
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
@ -1091,7 +1091,7 @@ func TestGossipSubFloodPublish(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGossipSubEnoughPeers(t *testing.T) {
|
func TestGossipsubEnoughPeers(t *testing.T) {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
@ -1131,7 +1131,7 @@ func TestGossipSubEnoughPeers(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGossipSubNegativeScore(t *testing.T) {
|
func TestGossipsubNegativeScore(t *testing.T) {
|
||||||
// in this test we score sinkhole a peer to exercise code paths relative to negative scores
|
// in this test we score sinkhole a peer to exercise code paths relative to negative scores
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user