Skip to content

Commit 0a61633

Browse files
author
Dave Syer
committed
Fix hystrix tests (wrong assertion)
1 parent 299e9e2 commit 0a61633

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void hystrixStreamWorks() throws Exception {
5757
byte[] buffer = new byte[1024];
5858
in.read(buffer);
5959
String contents = new String(buffer);
60-
assertTrue(contents.contains("ping"));
60+
assertTrue("Wrong content: \n" + contents, contents.contains("data"));
6161
in.close();
6262
}
6363
}

hystrix/src/test/java/demo/HystrixApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void hystrixStreamWorks() throws Exception {
5757
byte[] buffer = new byte[1024];
5858
in.read(buffer);
5959
String contents = new String(buffer);
60-
assertTrue(contents.contains("ping"));
60+
assertTrue("Wrong content: \n" + contents, contents.contains("data"));
6161
in.close();
6262
}
6363
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<groupId>org.springframework.boot</groupId>
66
<artifactId>spring-boot-starter-parent</artifactId>
7-
<version>1.3.7.RELEASE</version>
7+
<version>1.4.0.RELEASE</version>
88
<relativePath/>
99
</parent>
1010
<artifactId>spring-cloud-samples-tests</artifactId>
11-
<version>1.1.2.BUILD-SNAPSHOT</version>
11+
<version>1.2.0.BUILD-SNAPSHOT</version>
1212
<packaging>pom</packaging>
1313
<name>Spring Cloud Samples Tests</name>
1414
<description>Spring Cloud Samples Tests</description>

0 commit comments

Comments
 (0)