#549 - Adapt Redis stream tests to changed Redis error message.

This commit is contained in:
Mark Paluch
2020-01-16 11:18:22 +01:00
parent 950bcf04d8
commit da2be5c50a

View File

@@ -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));