diff --git a/src/test/java/com/hivemq/mqtt/handler/publish/PublishFlowHandlerTest.java b/src/test/java/com/hivemq/mqtt/handler/publish/PublishFlowHandlerTest.java index c00fcc210..5ca02b0ec 100644 --- a/src/test/java/com/hivemq/mqtt/handler/publish/PublishFlowHandlerTest.java +++ b/src/test/java/com/hivemq/mqtt/handler/publish/PublishFlowHandlerTest.java @@ -847,7 +847,7 @@ public void test_Qos2AndQos1PublishDoNotInterfereWithEachOther() { verify(incomingPublishHandler, times(1)).interceptOrDelegate(any(ChannelHandlerContext.class), eq(publishQoS2), eq(CLIENT_ID)); - verify(incomingPublishHandler, times(0)).interceptOrDelegate(any(ChannelHandlerContext.class), + verify(incomingPublishHandler, never()).interceptOrDelegate(any(ChannelHandlerContext.class), eq(publishQoS2Duplicate), eq(CLIENT_ID)); }