Fix ordering problem in test

This commit is contained in:
Dave Syer
2015-09-23 09:58:15 +01:00
parent 8d8e07a78e
commit 38e58d7a80

View File

@@ -19,6 +19,7 @@ package org.springframework.cloud.config.monitor;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -79,7 +80,7 @@ public class PropertyPathEndpoint
PropertyPathNotification notification = this.extractor.extract(headers, request);
if (notification != null) {
Set<String> services = new HashSet<>();
Set<String> services = new LinkedHashSet<>();
for (String path : notification.getPaths()) {
services.addAll(guessServiceName(path));