adjust GC interval in tests.

This commit is contained in:
Raúl Kripalani 2018-11-15 13:55:53 +00:00
parent e57f21a66c
commit bd80609ef6

View File

@ -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))