From 97ac596ac6079db4567339f7ddf33622f7a982fc Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 27 Aug 2016 15:47:03 +0100 Subject: [PATCH] Fix tests a bit more --- hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java | 2 +- hystrix/src/test/java/demo/HystrixApplicationTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java b/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java index 7535654..1f37dc3 100644 --- a/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java +++ b/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java @@ -57,7 +57,7 @@ public class HystrixApplicationTests { byte[] buffer = new byte[1024]; in.read(buffer); String contents = new String(buffer); - assertTrue("Wrong content: \n" + contents, contents.contains("data")); + assertTrue("Wrong content: \n" + contents, contents.contains("data") || contents.contains("ping")); in.close(); } } diff --git a/hystrix/src/test/java/demo/HystrixApplicationTests.java b/hystrix/src/test/java/demo/HystrixApplicationTests.java index 7535654..1f37dc3 100644 --- a/hystrix/src/test/java/demo/HystrixApplicationTests.java +++ b/hystrix/src/test/java/demo/HystrixApplicationTests.java @@ -57,7 +57,7 @@ public class HystrixApplicationTests { byte[] buffer = new byte[1024]; in.read(buffer); String contents = new String(buffer); - assertTrue("Wrong content: \n" + contents, contents.contains("data")); + assertTrue("Wrong content: \n" + contents, contents.contains("data") || contents.contains("ping")); in.close(); } }