mvcc/backend: fix to use the backend create by snapshot instead of origin one.

release-3.4
caoming 2018-10-12 15:39:39 +08:00
parent 1cab49ef78
commit bf49b9a145
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func TestBackendSnapshot(t *testing.T) {
nb := New(bcfg)
defer cleanup(nb, f.Name())
newTx := b.BatchTx()
newTx := nb.BatchTx()
newTx.Lock()
ks, _ := newTx.UnsafeRange([]byte("test"), []byte("foo"), []byte("goo"), 0)
if len(ks) != 1 {