diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-24 13:50:38 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-24 13:50:38 +0300 |
commit | 0b986be3d3b4b5ab440eb4888338fb6e91935572 (patch) | |
tree | 15dd1c816c8c534b5211258f9284d32f8cd544ea /internal/source/domains_test.go | |
parent | ccbe6b5ca4b56d4453567275b9232c58443d151e (diff) |
Do not pass mock Mutex by value in domain source test
Diffstat (limited to 'internal/source/domains_test.go')
-rw-r--r-- | internal/source/domains_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/source/domains_test.go b/internal/source/domains_test.go index 79fa7081..74ac84c6 100644 --- a/internal/source/domains_test.go +++ b/internal/source/domains_test.go @@ -15,7 +15,7 @@ type mockSource struct { mock.Mock } -func (m mockSource) GetDomain(name string) (*domain.Domain, error) { +func (m *mockSource) GetDomain(name string) (*domain.Domain, error) { args := m.Called(name) return args.Get(0).(*domain.Domain), args.Error(1) |