command: update mockGetProvider.GetProvider for new interface

The expected type was changed in the mainline code but the tests were not
updated to match.
This commit is contained in:
Martin Atkins 2017-06-05 16:35:53 -07:00
parent 4ba20f9c1c
commit 9aae06db97
1 changed files with 1 additions and 1 deletions

View File

@ -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)