mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
22 lines
522 B
Go
22 lines
522 B
Go
package slashings
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/slashings/mock"
|
|
"github.com/prysmaticlabs/prysm/v4/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)
|
|
}
|