Skip to content

Commit ec26871

Browse files
committed
test:fix bug
1 parent 84a5777 commit ec26871

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

db_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ func TestDB_Get(t *testing.T) {
144144
// Test getting a key from old files
145145
for i := 0; i < 1000000; i++ {
146146
err := db.Put(utils.GetTestKey(i), utils.GetTestValue(128))
147-
if err != nil {
148-
assert.Nil(t, err)
149-
break
150-
}
147+
assert.Nil(t, err)
148+
151149
}
152150
assert.Equal(t, 2, len(db.oldFile))
153151
get5, err := db.Get(utils.GetTestKey(1))

0 commit comments

Comments
 (0)