Merge pull request #10178 from johncming/master

bugfix: use the backend create by snapshot instead of origin one in tests
release-3.4
Xiang Li 2018-10-15 10:54:34 -07:00 committed by GitHub
commit 7a759c18d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {