示例#1
0
func NewTestConfig() Config {
	return Config{
		DatabaseUrl:            test.DatabaseUrl(),
		StellarCoreDatabaseUrl: test.StellarCoreDatabaseUrl(),
		RateLimit:              throttled.PerHour(1000),
	}
}
示例#2
0
func OpenTestDatabase() *sql.DB {

	result, err := sql.Open("postgres", test.DatabaseUrl())

	if err != nil {
		log.Panic(err)
	}
	return result
}