java.lang.AssertionError: Expected 1 slow operation logs, but was 2. expected:<1> but was:<2>

tip

Check your pattern declaration or check your assert declaration.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 6893#228694583
    via GitHub by hasancelik
    ,
  • GitHub comment 6893#238494504
    via GitHub by hasancelik
    ,
  • GitHub comment 6893#251680641
    via GitHub by hasancelik
    ,
  • GitHub comment 5173#226104759
    via GitHub by hasancelik
    ,
  • Junit AssertionError
    via Stack Overflow by Pyrus FlameWielder
    ,
    • java.lang.AssertionError: Expected 1 slow operation logs, but was 2. expected:<1> but was:<2> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at com.hazelcast.test.HazelcastTestSupport.assertEqualsStringFormat(HazelcastTestSupport.java:890) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.assertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:125) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest$1.run(SlowOperationDetectorAbstractTest.java:118) at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:851) at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:865) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.getSlowOperationLogsAndAssertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:114) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorBasicTest.testNestedSlowOperationOnPartitionAndGenericOperationThreads(SlowOperationDetectorBasicTest.java:157)

    Users with the same issue

    jf-ast
    jf-ast1 times, last one,
    odd
    odd1 times, last one,
    richard77
    richard771 times, last one,
    MoYapro
    MoYapro1 times, last one,
    Axelo
    Axelo2 times, last one,
    94 more bugmates