mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-02-27 09:30:07 +08:00
adjust GC interval in tests.
This commit is contained in:
parent
e57f21a66c
commit
bd80609ef6
@ -37,7 +37,7 @@ func TestDsAddrBook(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
opts := DefaultOpts()
|
||||
opts.GCInterval = 100 * time.Microsecond
|
||||
opts.GCInterval = 1 * time.Second
|
||||
opts.CacheSize = 1024
|
||||
|
||||
pt.TestAddrBook(t, addressBookFactory(t, dsFactory, opts))
|
||||
@ -47,7 +47,7 @@ func TestDsAddrBook(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
opts := DefaultOpts()
|
||||
opts.GCInterval = 100 * time.Microsecond
|
||||
opts.GCInterval = 1 * time.Second
|
||||
opts.CacheSize = 0
|
||||
|
||||
pt.TestAddrBook(t, addressBookFactory(t, dsFactory, opts))
|
||||
|
Loading…
Reference in New Issue
Block a user