Use internal logger to display results info
This commit is contained in:
parent
1e16779c52
commit
fc4e50bf08
|
@ -42,6 +42,8 @@ func (c *Client) ReachViewVersion() (string, error) {
|
|||
|
||||
wg.Wait()
|
||||
|
||||
c.logf("reachview version result: %v", version)
|
||||
|
||||
return version, err
|
||||
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
||||
}
|
||||
|
|
|
@ -42,6 +42,8 @@ func (c *Client) TimeSyncStatus() (bool, error) {
|
|||
|
||||
wg.Wait()
|
||||
|
||||
c.logf("time sync result: %v", synced)
|
||||
|
||||
return synced, err
|
||||
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue