From 3b7fbf66ab1504d5f005395097d71ba720d02094 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Sat, 7 Jul 2018 02:37:59 +0200 Subject: [PATCH] assert -> require --- x/stake/handler_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x/stake/handler_test.go b/x/stake/handler_test.go index d842d25fae..e4441bc2e6 100644 --- a/x/stake/handler_test.go +++ b/x/stake/handler_test.go @@ -3,7 +3,6 @@ package stake import ( "testing" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto" @@ -596,10 +595,10 @@ func TestUnbondingWhenExcessValidators(t *testing.T) { // validator (aka. validator-1) should make it into the bonded group, thus // the total number of validators should stay the same vals := keeper.GetValidatorsBonded(ctx) - assert.Equal(t, 2, len(vals), "vals %v", vals) + require.Equal(t, 2, len(vals), "vals %v", vals) val1, found := keeper.GetValidator(ctx, validatorAddr1) require.True(t, found) - assert.Equal(t, sdk.Bonded, val1.Status(), "%v", val1) + require.Equal(t, sdk.Bonded, val1.Status(), "%v", val1) } func TestJoiningAsCliffValidator(t *testing.T) {