func NewTestConfig() Config { return Config{ DatabaseUrl: test.DatabaseUrl(), StellarCoreDatabaseUrl: test.StellarCoreDatabaseUrl(), RateLimit: throttled.PerHour(1000), } }
func OpenTestDatabase() *sql.DB { result, err := sql.Open("postgres", test.DatabaseUrl()) if err != nil { log.Panic(err) } return result }