java.lang.AssertionError

Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>

Samebug tips1

Check your pattern declaration or check your assert declaration.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web6640

  • Expected 0 slow operation logs, but was 1 expected:<0> but was:<1>
  • Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
  • via GitHub by hasancelik
    , 11 months ago
    Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
  • Stack trace

    • java.lang.AssertionError: Expected 1 slow operation logs, but was 0. expected:<1> but was:<0> 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:944) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.assertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:127) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest$1.run(SlowOperationDetectorAbstractTest.java:112) at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:905) at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:919) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorAbstractTest.getSlowOperationLogsAndAssertNumberOfSlowOperationLogs(SlowOperationDetectorAbstractTest.java:108) at com.hazelcast.spi.impl.operationexecutor.slowoperationdetector.SlowOperationDetectorBasicTest.testNestedSlowOperationOnSamePartition(SlowOperationDetectorBasicTest.java:144)

    Write tip

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

    Users with the same issue

    Once, 3 weeks ago
    Once, 1 month ago
    Once, 3 months ago
    Once, 6 months ago
    Once, 7 months ago
    98 more bugmates