Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
internal/platform/jobs/main_test.go · Payments Backend: Go Microservices | Codewise
Payments Backend: Go Microservices
payments
/
internal
/
platform
/
jobs
/
main_test.go
main
main_test.go
16 lines, 321 B
Raw
1
package
jobs_test
2
3
import
(
4
"
testing
"
5
6
"
github.com/fiston-user/payments/internal/platform/testkit
"
7
)
8
9
var
postgresURL
string
10
11
// Any database will do for the locks: the wallet's has the job_runs table too.
12
func
TestMain
(
m
*
testing
.
M
) {
13
testkit.
Main
(m,
func
(
k
*
testkit
.
Kit
) {
14
postgresURL
=
k.
Postgres
(
"wallet"
)
15
})
16
}