mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
store: remove Root
This commit is contained in:
parent
ba7d174349
commit
f4613dd466
@ -82,7 +82,7 @@ func testServer(t *testing.T, ns int64) {
|
||||
var last interface{}
|
||||
for i, sv := range ss {
|
||||
sv.Stop()
|
||||
g := store.Root(sv.Store)
|
||||
g, _ := sv.Store.Get("/", true, true)
|
||||
if last != nil && !reflect.DeepEqual(last, g) {
|
||||
t.Errorf("server %d: Root = %#v, want %#v", i, g, last)
|
||||
}
|
||||
|
@ -75,11 +75,6 @@ func New() Store {
|
||||
return newStore()
|
||||
}
|
||||
|
||||
// Root returns the root of a Store and is for testing only.
|
||||
func Root(st Store) interface{} {
|
||||
return st.(*store).Root
|
||||
}
|
||||
|
||||
func newStore() *store {
|
||||
s := new(store)
|
||||
s.CurrentVersion = defaultVersion
|
||||
|
Loading…
x
Reference in New Issue
Block a user