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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check your pattern declaration or check your assert declaration.

Solutions on the web

via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 2. expected:<1> but was:<2>
via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
via GitHub by hasancelik
, 1 year ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
via GitHub by bilalyasar
, 1 year ago
Expected 0 slow operation logs, but was 1 expected:<0> but was:<1>
via GitHub by mdogan
, 10 months ago
Expected 1 slow operation logs, but was 0. expected:<1> but was:<0>
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

6 times, 9 months ago
Once, 10 months ago
103 times, 1 year ago
2 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.