open-consul/agent/consul/state/schema_test.go

18 lines
315 B
Go
Raw Normal View History

2015-08-22 01:14:57 +00:00
package state
import (
"testing"
"github.com/hashicorp/go-memdb"
)
func TestStateStore_Schema(t *testing.T) {
// First call the schema creation
schema := stateStoreSchema()
// Try to initialize a new memdb using the schema
if _, err := memdb.NewMemDB(schema); err != nil {
t.Fatalf("err: %s", err)
}
}