diff --git a/tests/.gitignore b/tests/.gitignore index 08cb523..72e8ffc 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1 +1 @@ -go.sum +* diff --git a/tests/go.mod b/tests/go.mod index f47d175..dba4a24 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -7,13 +7,10 @@ require ( github.com/jackc/pgx/v5 v5.3.1 // indirect github.com/jinzhu/now v1.1.5 github.com/lib/pq v1.10.8 - github.com/mattn/go-sqlite3 v1.14.16 // indirect + github.com/ncruces/go-sqlite3 v0.7.1 golang.org/x/crypto v0.8.0 // indirect gorm.io/driver/mysql v1.5.0 gorm.io/driver/postgres v1.5.0 - gorm.io/driver/sqlite v1.5.0 gorm.io/driver/sqlserver v1.4.3 - gorm.io/gorm v1.25.0 -) - -replace gorm.io/gorm => ../ + gorm.io/gorm v1.25.1 +) \ No newline at end of file diff --git a/tests/scanner_valuer_test.go b/tests/scanner_valuer_test.go index 1412169..472434b 100644 --- a/tests/scanner_valuer_test.go +++ b/tests/scanner_valuer_test.go @@ -170,10 +170,10 @@ func (data *EncryptedData) Scan(value interface{}) error { return errors.New("Too short") } - *data = b[3:] + *data = append((*data)[0:], b[3:]...) return nil } else if s, ok := value.(string); ok { - *data = []byte(s)[3:] + *data = []byte(s[3:]) return nil } diff --git a/tests/tests_test.go b/tests/tests_test.go index 90eb847..cd9af43 100644 --- a/tests/tests_test.go +++ b/tests/tests_test.go @@ -7,9 +7,11 @@ import ( "path/filepath" "time" + _ "github.com/ncruces/go-sqlite3/embed" + sqlite "github.com/ncruces/go-sqlite3/gormlite" + "gorm.io/driver/mysql" "gorm.io/driver/postgres" - "gorm.io/driver/sqlite" "gorm.io/driver/sqlserver" "gorm.io/gorm" "gorm.io/gorm/logger"