From da2be5c50a4d4a92c85d9326680080ab3554f1e7 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 16 Jan 2020 11:18:22 +0100 Subject: [PATCH] #549 - Adapt Redis stream tests to changed Redis error message. --- .../example/springdata/redis/sync/SyncStreamApiTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redis/streams/src/test/java/example/springdata/redis/sync/SyncStreamApiTests.java b/redis/streams/src/test/java/example/springdata/redis/sync/SyncStreamApiTests.java index 4219bfcd..be1774d6 100644 --- a/redis/streams/src/test/java/example/springdata/redis/sync/SyncStreamApiTests.java +++ b/redis/streams/src/test/java/example/springdata/redis/sync/SyncStreamApiTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 the original author or authors. + * Copyright 2019-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ import org.springframework.test.context.junit4.SpringRunner; /** * @author Christoph Strobl + * @author Mark Paluch */ @RunWith(SpringRunner.class) @SpringBootTest @@ -78,7 +79,7 @@ public class SyncStreamApiTests { // XADD errors when timestamp is less then last inserted assertThatExceptionOfType(RedisSystemException.class).isThrownBy(() -> { streamOps.add(SensorData.create("1234", "19.8", "invalid").withId(RecordId.of("0-0"))); - }).withMessageContaining("equal or smaller"); + }).withMessageContaining("ID specified"); // XADD with autogenerated id RecordId autogeneratedId = streamOps.add(SensorData.create("1234", "19.8", null));