mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-14 02:30:05 +08:00
test: don't run datastore tests in parallel
We have timing dependencies in some of these tests.
This commit is contained in:
parent
4a4c4886f7
commit
7afb11e00d
@ -33,8 +33,6 @@ func TestDsPeerstore(t *testing.T) {
|
||||
func TestDsAddrBook(t *testing.T) {
|
||||
for name, dsFactory := range dstores {
|
||||
t.Run(name+" Cacheful", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
opts := DefaultOpts()
|
||||
opts.GCPurgeInterval = 1 * time.Second
|
||||
opts.CacheSize = 1024
|
||||
@ -43,8 +41,6 @@ func TestDsAddrBook(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run(name+" Cacheless", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
opts := DefaultOpts()
|
||||
opts.GCPurgeInterval = 1 * time.Second
|
||||
opts.CacheSize = 0
|
||||
|
Loading…
Reference in New Issue
Block a user