mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
15 lines
215 B
Go
15 lines
215 B
Go
|
package p2p
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestFeed_ConcurrentWrite(t *testing.T) {
|
||
|
s, err := NewServer()
|
||
|
if err != nil {
|
||
|
t.Fatalf("could not create server %v", err)
|
||
|
}
|
||
|
|
||
|
for i := 0; i < 5; i++ {
|
||
|
go s.Feed("a")
|
||
|
}
|
||
|
}
|