open-vault/sdk/physical/inmem/inmem_ha_test.go

22 lines
469 B
Go
Raw Normal View History

package inmem
import (
"testing"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/sdk/helper/logging"
"github.com/hashicorp/vault/sdk/physical"
)
func TestInmemHA(t *testing.T) {
logger := logging.NewVaultLogger(log.Debug)
inm, err := NewInmemHA(nil, logger)
if err != nil {
t.Fatal(err)
}
2018-11-01 17:31:09 +00:00
// Use the same inmem backend to acquire the same set of locks
physical.ExerciseHABackend(t, inm.(physical.HABackend), inm.(physical.HABackend))
}