Use internal logger to display results info

This commit is contained in:
wpetit 2018-09-19 15:54:11 +02:00
parent 1e16779c52
commit fc4e50bf08
6 changed files with 8 additions and 11 deletions

View File

@ -42,6 +42,8 @@ func (c *Client) ReachViewVersion() (string, error) {
wg.Wait() wg.Wait()
c.logf("reachview version result: %v", version)
return version, err return version, err
} }

View File

@ -1,7 +1,6 @@
package reach package reach
import ( import (
"log"
"testing" "testing"
) )
@ -28,8 +27,6 @@ func TestClientReachViewVersion(t *testing.T) {
t.Error("version should not be empty") t.Error("version should not be empty")
} }
log.Printf("reachview version result: %v", version)
defer client.Close() defer client.Close()
} }

View File

@ -42,6 +42,8 @@ func (c *Client) ReceiverUpgradeAvailable() (available bool, running bool, err e
wg.Wait() wg.Wait()
c.logf("receiver upgrade result: available: %v, running: %v", available, running)
return available, running, err return available, running, err
} }

View File

@ -1,7 +1,6 @@
package reach package reach
import ( import (
"log"
"testing" "testing"
) )
@ -19,13 +18,11 @@ func TestClientReceiverUpgradeAvailable(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
available, running, err := client.ReceiverUpgradeAvailable() _, _, err := client.ReceiverUpgradeAvailable()
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
log.Printf("receiver upgrade result: available: %v, running: %v", available, running)
defer client.Close() defer client.Close()
} }

View File

@ -42,6 +42,8 @@ func (c *Client) TimeSyncStatus() (bool, error) {
wg.Wait() wg.Wait()
c.logf("time sync result: %v", synced)
return synced, err return synced, err
} }

View File

@ -1,7 +1,6 @@
package reach package reach
import ( import (
"log"
"testing" "testing"
) )
@ -19,13 +18,11 @@ func TestClientTimeSync(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
synced, err := client.TimeSyncStatus() _, err := client.TimeSyncStatus()
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
log.Printf("time sync result: %v", synced)
defer client.Close() defer client.Close()
} }