java.lang.AssertionError: expected:<2> but was:<4>


Solutions on the web2481

Solution icon of github
expected:<2> but was:<4>

Solution icon of github
expected:<2> but was:<4>

Solution icon of github
via GitHub by sancar
, 1 year ago
expected:<4> but was:<2>

Solution icon of apache
via hadoop-mapreduce-dev by Apache Jenkins Server, 1 year ago
Unexpected number of live nodes: expected:<4> but was:<2>

Solution icon of github
expected:<[1, 4, 2, 3, 0, 5]> but was:<[1, 2, 0, 4, 3, 5]>

Solution icon of github
via GitHub by gnorsilva
, 6 months ago
expected:<4> but was:<1>

Solution icon of github
expected:<4> but was:<8>

Solution icon of github
expected:<4> but was:<3>

Solution icon of github
expected:<4> but was:<5>

Solution icon of github
expected:<4> but was:<3>

Stack trace

java.lang.AssertionError: expected:<2> but was:<4>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at com.hazelcast.client.heartbeat.ClientHeartbeatTest$6.run(ClientHeartbeatTest.java:264)
	at com.hazelcast.test.HazelcastTestSupport.assertTrueAllTheTime(HazelcastTestSupport.java:895)
	at com.hazelcast.client.heartbeat.ClientHeartbeatTest.testClientEndpointsDelaySeconds_whenHeartbeatResumed(ClientHeartbeatTest.java:261)

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, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
22 times, 3 weeks ago
Once, 1 month ago
105 more bugmates