From 342c29de7d14c594a8cce0d87842b79bcc2a942d Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sat, 16 Nov 2019 21:13:06 +0000 Subject: [PATCH] fix TestMemoryRegistryTTLConcurrent test --- registry/memory/memory_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/memory/memory_test.go b/registry/memory/memory_test.go index dc83e4d3..cab6a6f4 100644 --- a/registry/memory/memory_test.go +++ b/registry/memory/memory_test.go @@ -194,12 +194,12 @@ func TestMemoryRegistryTTL(t *testing.T) { func TestMemoryRegistryTTLConcurrent(t *testing.T) { concurrency := 1000 - waitTime := ttlPruneTime * 4 + waitTime := ttlPruneTime * 2 m := NewRegistry() for _, v := range testData { for _, service := range v { - if err := m.Register(service, registry.RegisterTTL(waitTime)); err != nil { + if err := m.Register(service, registry.RegisterTTL(waitTime/2)); err != nil { t.Fatal(err) } }