Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danflo27 committed Jun 6, 2024
1 parent 3f8ef07 commit c7f0860
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions x/bridge/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ func TestCompareAndSetBridgeValidators(t *testing.T) {
err = k.BridgeValset.Set(ctx, *currentValidatorSetEVMCompatible)
require.NoError(t, err)

// should return true since valset has changed
res, err = k.CompareAndSetBridgeValidators(ctx)
_, err = k.CompareAndSetBridgeValidators(ctx)
require.NoError(t, err)
// require.True(t, res)
// require.True(t, res) TODO: hit remainder of fcn

}

Expand All @@ -319,8 +318,6 @@ func TestSetBridgeValidatorParams(t *testing.T) {
params, err := k.Params.Get(ctx)
require.NoError(t, err)
require.NotNil(t, params)
//BridgeValsetByTimestampMap
//BridgeValsetSignaturesMap

bridgeValSet = bridgetypes.BridgeValidatorSet{
BridgeValidatorSet: []*bridgetypes.BridgeValidator{
Expand Down Expand Up @@ -369,8 +366,6 @@ func TestCalculateValidatorSetCheckpoint(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, checkpoint)
lastCheckpointIdx, err = k.LatestCheckpointIdx.Get(ctx)
//ValidatorCheckpointIdxMap
//ValsetTimestampToIdxMap
require.NoError(t, err)
require.Equal(t, lastCheckpointIdx.Index, uint64(1))

Expand Down Expand Up @@ -691,7 +686,6 @@ func TestEVMAddressFromSignatures(t *testing.T) {

}

// needs finished
func TestTryRecoverAddressWithBothIDs(t *testing.T) {
k, _, _, _, _, _, ctx := setupKeeper(t)
require.NotNil(t, k)
Expand Down Expand Up @@ -931,6 +925,5 @@ func TestSetBridgeValsetByTimestamp(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, bridgeValSet)
require.Equal(t, bridgeValSet.BridgeValidatorSet, valset.BridgeValidatorSet)


}

0 comments on commit c7f0860

Please sign in to comment.