Skip to content

Commit

Permalink
Merge pull request cockroachdb#10178 from johncming/master
Browse files Browse the repository at this point in the history
bugfix: use the backend create by snapshot instead of origin one in tests
  • Loading branch information
xiang90 authored Oct 15, 2018
2 parents 1ded5aa + bf49b9a commit 7a759c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvcc/backend/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7a759c1

Please sign in to comment.