1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 03:53:50 +08:00

ci: make lint happy

This commit is contained in:
wdvxdr 2022-01-30 16:00:30 +08:00
parent e8bf497022
commit 1f55bde728
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6

View File

@ -75,7 +75,6 @@ func testForeach(t *testing.T, elemSize int) {
f := tempfile(t)
defer os.Remove(f)
bt, err := Create(f)
defer bt.Close()
assert2.NoError(t, err)
for _, v := range expected {
hash := sha1.New()
@ -87,6 +86,7 @@ func testForeach(t *testing.T, elemSize int) {
got = append(got, string(value))
})
assert2.ElementsMatch(t, expected, got)
assert2.NoError(t, bt.Close())
}
func TestDB_Foreach(t *testing.T) {