mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10178 from johncming/master
bugfix: use the backend create by snapshot instead of origin one in tests
This commit is contained in:
commit
7a759c18d2
@ -74,7 +74,7 @@ func TestBackendSnapshot(t *testing.T) {
|
|||||||
nb := New(bcfg)
|
nb := New(bcfg)
|
||||||
defer cleanup(nb, f.Name())
|
defer cleanup(nb, f.Name())
|
||||||
|
|
||||||
newTx := b.BatchTx()
|
newTx := nb.BatchTx()
|
||||||
newTx.Lock()
|
newTx.Lock()
|
||||||
ks, _ := newTx.UnsafeRange([]byte("test"), []byte("foo"), []byte("goo"), 0)
|
ks, _ := newTx.UnsafeRange([]byte("test"), []byte("foo"), []byte("goo"), 0)
|
||||||
if len(ks) != 1 {
|
if len(ks) != 1 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user