Commit dbed662a authored by Sonja Happ's avatar Sonja Happ
Browse files

remove obsolete access to global config

parent d2c94d18
......@@ -134,15 +134,7 @@ func main() {
}
if mode == "test" {
database.DropTables(db)
log.Println("Database tables dropped")
basePath, err := configuration.GolbalConfig.String("base.path")
if err != nil {
fmt.Println(err.Error())
fmt.Println("error: base.path parameter missing in global configuration, aborting")
return
}
log.Println("Adding test data to DB")
log.Println("Database tables dropped, adding test data to DB")
err = database.DBAddTestData(db, basePath, r)
if err != nil {
fmt.Println(err.Error())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment