From 3c3b0d2c01dd5658cd5dbdc5c6fa247f3d895986 Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Thu, 11 Apr 2024 11:50:43 +0700 Subject: [PATCH] :wrench: chore: update test #14 --- example/ami_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/example/ami_test.go b/example/ami_test.go index 269febb..937eef3 100644 --- a/example/ami_test.go +++ b/example/ami_test.go @@ -2,7 +2,6 @@ package example import ( "fmt" - "log" "testing" "time" @@ -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) @@ -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)) }