Skip to content

Commit

Permalink
🔧 chore: update test #14
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Apr 11, 2024
1 parent f765219 commit 3c3b0d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example/ami_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package example

import (
"fmt"
"log"
"testing"
"time"

Expand All @@ -13,8 +12,8 @@ func createConn() (*ami.AMI, error) {
c := ami.GetAmiClientSample().
SetEnabled(true).
SetPort(5038).
SetUsername("monast").
SetPassword("T5Monast").
SetUsername("admin").
SetPassword("admin").
SetTimeout(5 * time.Second)
ami.D().Debug("Asterisk server credentials: %v", c.String())
return ami.NewClient(ami.NewTcp(), *c)
Expand Down Expand Up @@ -337,5 +336,5 @@ func TestCommand(t *testing.T) {
ami.D().Error(err.Error())
return
}
log.Println(fmt.Sprintf("%v", ami.JsonString(response)))
fmt.Println(ami.JsonString(response))
}

0 comments on commit 3c3b0d2

Please sign in to comment.