Skip to content

Commit

Permalink
Merge pull request etcd-io#17284 from ahrtr/test_TestScheduleCompacti…
Browse files Browse the repository at this point in the history
…on_20240119

Fix test issue in TestScheduleCompaction
  • Loading branch information
ahrtr authored Jan 20, 2024
2 parents ef70b13 + 82562ab commit dd0b052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/storage/mvcc/kvstore_compaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func TestScheduleCompaction(t *testing.T) {
tx := s.b.BatchTx()

tx.Lock()
ibytes := NewRevBytes()
for _, rev := range revs {
ibytes := NewRevBytes()
ibytes = RevToBytes(rev, ibytes)
tx.UnsafePut(schema.Key, ibytes, []byte("bar"))
}
Expand All @@ -90,6 +90,7 @@ func TestScheduleCompaction(t *testing.T) {

tx.Lock()
for _, rev := range tt.wrevs {
ibytes := NewRevBytes()
ibytes = RevToBytes(rev, ibytes)
keys, _ := tx.UnsafeRange(schema.Key, ibytes, nil, 0)
if len(keys) != 1 {
Expand Down

0 comments on commit dd0b052

Please sign in to comment.