From c243487bdb49da06071e3290f50d24eef0690f2d Mon Sep 17 00:00:00 2001 From: mpl Date: Wed, 29 Aug 2018 03:38:51 +0200 Subject: [PATCH] pkg/index/sqlite: fix tests Long broken since the sha224 switch. Updates #1085 Change-Id: I2dda3dac6bd3c8006be0974bdc9be402e25b7429 --- pkg/index/sqlite/sqlite_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {