1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-14 05:58:37 -04:00

Take unexported database methods 'private'

This commit is contained in:
2017-12-09 06:06:20 -05:00
parent e89198fe2e
commit c4d2fe27e6
3 changed files with 15 additions and 13 deletions

View File

@ -258,10 +258,7 @@ func RunTests(m *testing.M) int {
}
defer db.Close()
err = db.DbMap.TruncateTables()
if err != nil {
log.Fatal(err)
}
db.Empty() // clear the DB tables
server = httptest.NewTLSServer(&handlers.APIHandler{Store: db})
defer server.Close()