testrig is runnable again
This commit is contained in:
@ -45,6 +45,8 @@ var testModels []interface{} = []interface{}{
|
||||
>smodel.Tag{},
|
||||
>smodel.User{},
|
||||
>smodel.Emoji{},
|
||||
>smodel.Instance{},
|
||||
>smodel.Notification{},
|
||||
&oauth.Token{},
|
||||
&oauth.Client{},
|
||||
}
|
||||
@ -132,6 +134,10 @@ func StandardDBSetup(db db.DB) {
|
||||
if err := db.CreateInstanceAccount(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if err := db.CreateInstanceInstance(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
// StandardDBTeardown drops all the standard testing tables/models from the database to ensure it's clean for the next test.
|
||||
|
||||
Reference in New Issue
Block a user