Fix hystrix tests (wrong assertion)

This commit is contained in:
Dave Syer
2016-08-27 12:04:22 +01:00
parent 299e9e26d8
commit 0a61633d65
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ public class HystrixApplicationTests {
byte[] buffer = new byte[1024];
in.read(buffer);
String contents = new String(buffer);
assertTrue(contents.contains("ping"));
assertTrue("Wrong content: \n" + contents, contents.contains("data"));
in.close();
}
}

View File

@@ -57,7 +57,7 @@ public class HystrixApplicationTests {
byte[] buffer = new byte[1024];
in.read(buffer);
String contents = new String(buffer);
assertTrue(contents.contains("ping"));
assertTrue("Wrong content: \n" + contents, contents.contains("data"));
in.close();
}
}

View File

@@ -4,11 +4,11 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.7.RELEASE</version>
<version>1.4.0.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-samples-tests</artifactId>
<version>1.1.2.BUILD-SNAPSHOT</version>
<version>1.2.0.BUILD-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Spring Cloud Samples Tests</name>
<description>Spring Cloud Samples Tests</description>