From 9aae06db97dee3adbc5a277f20ebc62b125cf7c7 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 5 Jun 2017 16:35:53 -0700 Subject: [PATCH] command: update mockGetProvider.GetProvider for new interface The expected type was changed in the mainline code but the tests were not updated to match. --- command/plugins_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/plugins_test.go b/command/plugins_test.go index 74544a3b1..827e587c9 100644 --- a/command/plugins_test.go +++ b/command/plugins_test.go @@ -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)