mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
14 lines
318 B
Go
14 lines
318 B
Go
|
package slashings
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/prysmaticlabs/prysm/shared/testutil/require"
|
||
|
)
|
||
|
|
||
|
func TestPool_validatorSlashingPreconditionCheck_requiresLock(t *testing.T) {
|
||
|
p := &Pool{}
|
||
|
_, err := p.validatorSlashingPreconditionCheck(nil, 0)
|
||
|
require.ErrorContains(t, "caller must hold read/write lock", err)
|
||
|
}
|