prysm-pulse/beacon-chain/operations/slashings/service_test.go
terence 5a66807989
Update to V5 (#13622)
* First take at updating everything to v5

* Patch gRPC gateway to use prysm v5

Fix patch

* Update go ssz

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00

22 lines
522 B
Go

package slashings
import (
"testing"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/slashings/mock"
"github.com/prysmaticlabs/prysm/v5/testing/require"
)
var (
_ = PoolManager(&Pool{})
_ = PoolInserter(&Pool{})
_ = PoolManager(&mock.PoolMock{})
_ = PoolInserter(&mock.PoolMock{})
)
func TestPool_validatorSlashingPreconditionCheck_requiresLock(t *testing.T) {
p := &Pool{}
_, err := p.validatorSlashingPreconditionCheck(nil, 0)
require.ErrorContains(t, "caller must hold read/write lock", err)
}