use newmock in scanner tests

This commit is contained in:
sentriz
2019-07-08 13:00:19 +01:00
parent 34321ebfff
commit b44b0d8720
2 changed files with 1 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ linters:
disable:
- gochecknoglobals
- gochecknoinits
issues:
exclude-rules:
- path: _test\.go

View File

@@ -13,7 +13,7 @@ import (
var testScanner *Scanner
func init() {
db, err := db.New(":memory:")
db, err := db.NewMock()
if err != nil {
log.Fatalf("error opening database: %v\n", err)
}