fix TestMemoryRegistryTTLConcurrent test
This commit is contained in:
parent
eeed493766
commit
342c29de7d
@ -194,12 +194,12 @@ func TestMemoryRegistryTTL(t *testing.T) {
|
|||||||
|
|
||||||
func TestMemoryRegistryTTLConcurrent(t *testing.T) {
|
func TestMemoryRegistryTTLConcurrent(t *testing.T) {
|
||||||
concurrency := 1000
|
concurrency := 1000
|
||||||
waitTime := ttlPruneTime * 4
|
waitTime := ttlPruneTime * 2
|
||||||
m := NewRegistry()
|
m := NewRegistry()
|
||||||
|
|
||||||
for _, v := range testData {
|
for _, v := range testData {
|
||||||
for _, service := range v {
|
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)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user