File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -874,10 +874,8 @@ func TestTxn_ReverseScan(t *testing.T) {
874
874
t .Errorf ("expected empty, got %v" , rows )
875
875
}
876
876
return err
877
- }); err != nil {
878
- if err == nil {
879
- t .Errorf ("expected a truncation error, got %s" , err )
880
- }
877
+ }); err == nil || ! strings .Contains (err .Error (), "must be greater than start" ) {
878
+ t .Errorf ("expected a truncation error, got %s" , err )
881
879
}
882
880
883
881
// Try reverse scan with non-existent key.
Original file line number Diff line number Diff line change @@ -119,9 +119,7 @@ func newTestTxnFactory(
119
119
}
120
120
if ba .Txn != nil && br .Txn == nil {
121
121
br .Txn = ba .Txn .Clone ()
122
- if pErr == nil {
123
- br .Txn .Status = status
124
- }
122
+ br .Txn .Status = status
125
123
// Update the MockTxnSender's proto.
126
124
* txn = * br .Txn
127
125
}
You can’t perform that action at this time.
0 commit comments