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()
c.logf("reachview version result: %v", version)
return version, err
}

View File

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

View File

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

View File

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

View File

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

View File

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