mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Clean database tests
This commit is contained in:
parent
64e25da0b2
commit
9d71d109b2
4 changed files with 3 additions and 4 deletions
|
@ -97,7 +97,7 @@ func testDatabase(t *testing.T, storageType string) {
|
|||
}
|
||||
|
||||
cnt := 0
|
||||
for _ = range it.Next {
|
||||
for range it.Next {
|
||||
cnt++
|
||||
}
|
||||
if it.Err() != nil {
|
||||
|
|
|
@ -98,7 +98,7 @@ func TestBadger(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
cnt := 0
|
||||
for _ = range it.Next {
|
||||
for range it.Next {
|
||||
cnt++
|
||||
}
|
||||
if it.Err() != nil {
|
||||
|
|
|
@ -126,7 +126,7 @@ func TestBadger(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
cnt := 0
|
||||
for _ = range it.Next {
|
||||
for range it.Next {
|
||||
cnt++
|
||||
}
|
||||
if it.Err() != nil {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package kvops
|
Loading…
Add table
Reference in a new issue