MM-15276: Migrate Team.Update to sync by default (#10693)

* MM-15276: Migrate Team.Update to sync by default

* MM-15276: Addressing review comments and change Update func signature similar to other interface Update method

* update store mocks for update fn

* addressing review comments
This commit is contained in:
Puneeth Reddy
2019-04-25 06:29:02 -07:00
committed by Jesús Espino
parent b24013d54c
commit ec95793b90
17 changed files with 109 additions and 111 deletions

View File

@@ -149,7 +149,7 @@ func NewHTTPClient(transport http.RoundTripper) *http.Client {
func TestIsReservedIP(t *testing.T) {
tests := []struct {
name string
ip net.IP
ip net.IP
want bool
}{
{"127.8.3.5", net.IPv4(127, 8, 3, 5), true},
@@ -171,7 +171,7 @@ func TestIsReservedIP(t *testing.T) {
func TestIsOwnIP(t *testing.T) {
tests := []struct {
name string
ip net.IP
ip net.IP
want bool
}{
{"127.0.0.1", net.IPv4(127, 0, 0, 1), true},
@@ -181,7 +181,7 @@ func TestIsOwnIP(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
if got, _ := IsOwnIP(tt.ip); got != tt.want {
t.Errorf("IsOwnIP() = %v, want %v", got, tt.want)
t.Errorf(tt.ip.String());
t.Errorf(tt.ip.String())
}
})
}