mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
committed by
Jesús Espino
parent
b24013d54c
commit
ec95793b90
@@ -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())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user