github.com/hashicorp/vault/sdk@v0.11.0/helper/locksutil/locks_test.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package locksutil 5 6 import "testing" 7 8 func Test_CreateLocks(t *testing.T) { 9 locks := CreateLocks() 10 if len(locks) != 256 { 11 t.Fatalf("bad: len(locks): expected:256 actual:%d", len(locks)) 12 } 13 }