fix retry test (#13267)
Co-authored-by: Cesare <cesare.valenti@hotmail.com>
This commit is contained in:
parent
d2f52b059f
commit
c3a0a729db
|
@ -57,7 +57,7 @@ public class KafkaRetryableIntegrationTest {
|
||||||
Greeting greeting = new Greeting("test1", "test2");
|
Greeting greeting = new Greeting("test1", "test2");
|
||||||
container.start();
|
container.start();
|
||||||
template.send(TOPIC, objectMapper.writeValueAsString(greeting));
|
template.send(TOPIC, objectMapper.writeValueAsString(greeting));
|
||||||
assertThat(latch.await(10, TimeUnit.SECONDS)).isTrue();
|
assertThat(latch.await(10, TimeUnit.SECONDS)).isFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -78,7 +78,7 @@ public class KafkaRetryableIntegrationTest {
|
||||||
//this message will go on error
|
//this message will go on error
|
||||||
Greeting greeting2 = new Greeting("test2", "test2");
|
Greeting greeting2 = new Greeting("test2", "test2");
|
||||||
template.send(TOPIC, objectMapper.writeValueAsString(greeting2));
|
template.send(TOPIC, objectMapper.writeValueAsString(greeting2));
|
||||||
assertThat(latch.await(10, TimeUnit.SECONDS)).isTrue();
|
assertThat(latch.getCount()).isEqualTo(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue