diff --git a/pkg/index/sqlite/sqlite_test.go b/pkg/index/sqlite/sqlite_test.go index 495fb655f..28edf61a7 100644 --- a/pkg/index/sqlite/sqlite_test.go +++ b/pkg/index/sqlite/sqlite_test.go @@ -28,7 +28,7 @@ import ( "sync" "testing" - "go4.org/jsonconfig" + "perkeep.org/internal/testhooks" "perkeep.org/pkg/index" "perkeep.org/pkg/index/indextest" "perkeep.org/pkg/sorted" @@ -36,6 +36,7 @@ import ( _ "perkeep.org/pkg/sorted/sqlite" _ "github.com/mattn/go-sqlite3" + "go4.org/jsonconfig" ) var ( @@ -43,6 +44,10 @@ var ( dbAvailable bool ) +func init() { + testhooks.SetUseSHA1(true) +} + func do(db *sql.DB, sql string) { _, err := db.Exec(sql) if err == nil {