aboutsummaryrefslogtreecommitdiff
path: root/duitku_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'duitku_test.go')
-rw-r--r--duitku_test.go17
1 files changed, 8 insertions, 9 deletions
diff --git a/duitku_test.go b/duitku_test.go
index 37d1ba6..9f158c5 100644
--- a/duitku_test.go
+++ b/duitku_test.go
@@ -15,17 +15,16 @@ var (
func TestMain(m *testing.M) {
var (
- clOpts = ClientOptions{
- ServerUrl: ServerUrlSandbox,
- DisburseUserID: 3551,
- DisburseEmail: `test@chakratechnology.com`,
- DisburseApiKey: `de56f832487bc1ce1de5ff2cfacf8d9486c61da69df6fd61d5537b6b7d6d354d`,
- }
-
- err error
+ opts *ClientOptions
+ err error
)
- testClient, err = NewClient(clOpts)
+ opts, err = LoadClientOptions(`client.conf.example`)
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ testClient, err = NewClient(*opts)
if err != nil {
log.Fatal(err)
}