1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

fix TestMemoryRegistryTTLConcurrent test

This commit is contained in:
Asim Aslam 2019-11-16 21:13:06 +00:00
parent eeed493766
commit 342c29de7d

View File

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