From 68c40f4b960f03d502ee2d41a3ca3e5f0d9f7cb5 Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Fri, 20 Dec 2024 15:19:53 +0100 Subject: [PATCH] chore: fixed tests --- testutil/integration/checks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/integration/checks.go b/testutil/integration/checks.go index 287907de..a2ac0a4b 100644 --- a/testutil/integration/checks.go +++ b/testutil/integration/checks.go @@ -132,7 +132,7 @@ func (suite *KeeperTestSuite) VerifyPoolQueries() { } } - sort.Slice(stakersByPoolState, func(a, b int) bool { + sort.SliceStable(stakersByPoolState, func(a, b int) bool { return suite.App().StakersKeeper.GetValidatorPoolStake(suite.Ctx(), stakersByPoolState[a].Address, poolsState[i].Id) > suite.App().StakersKeeper.GetValidatorPoolStake(suite.Ctx(), stakersByPoolState[b].Address, poolsState[i].Id) })