Skip to content

Commit 215fa43

Browse files
committed
Remove packr tests that break linting
It's deprecated anyway
1 parent db6e9e6 commit 215fa43

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

migrate_test.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"time"
88

99
"github.com/go-gorp/gorp/v3"
10-
"github.com/gobuffalo/packr/v2"
1110
_ "github.com/mattn/go-sqlite3"
1211
. "gopkg.in/check.v1"
1312
)
@@ -162,39 +161,6 @@ func (s *SqliteMigrateSuite) TestAssetMigrate(c *C) {
162161
c.Assert(id, Equals, int64(1))
163162
}
164163

165-
func (s *SqliteMigrateSuite) TestPackrMigrate(c *C) {
166-
migrations := &PackrMigrationSource{
167-
Box: packr.New("migrations", "test-migrations"),
168-
}
169-
170-
// Executes two migrations
171-
n, err := Exec(s.Db, "sqlite3", migrations, Up)
172-
c.Assert(err, IsNil)
173-
c.Assert(n, Equals, 2)
174-
175-
// Has data
176-
id, err := s.DbMap.SelectInt("SELECT id FROM people")
177-
c.Assert(err, IsNil)
178-
c.Assert(id, Equals, int64(1))
179-
}
180-
181-
func (s *SqliteMigrateSuite) TestPackrMigrateDir(c *C) {
182-
migrations := &PackrMigrationSource{
183-
Box: packr.New(".", "."),
184-
Dir: "./test-migrations/",
185-
}
186-
187-
// Executes two migrations
188-
n, err := Exec(s.Db, "sqlite3", migrations, Up)
189-
c.Assert(err, IsNil)
190-
c.Assert(n, Equals, 2)
191-
192-
// Has data
193-
id, err := s.DbMap.SelectInt("SELECT id FROM people")
194-
c.Assert(err, IsNil)
195-
c.Assert(id, Equals, int64(1))
196-
}
197-
198164
func (s *SqliteMigrateSuite) TestMigrateMax(c *C) {
199165
migrations := &FileMigrationSource{
200166
Dir: "test-migrations",

0 commit comments

Comments
 (0)