command: update mockGetProvider.GetProvider for new interface

The expected type was changed in the mainline code but the tests were not
updated to match.
pull/15208/head
Martin Atkins 9 years ago
parent 4ba20f9c1c
commit 9aae06db97

@ -22,7 +22,7 @@ func (m mockGetProvider) FileName(provider, version string) string {
// GetProvider will check the Providers map to see if it can find a suitable
// version, and put an empty file in the dst directory.
func (m mockGetProvider) GetProvider(dst, provider string, req discovery.Constraints) error {
func (m mockGetProvider) GetProvider(dst, provider string, req discovery.Constraints, protoVersion uint) error {
versions := m.Providers[provider]
if len(versions) == 0 {
return fmt.Errorf("provider %q not found", provider)

Loading…
Cancel
Save