diff --git a/test/loading_test.go b/test/loading_test.go index 258d8b5f5..e31decb2c 100644 --- a/test/loading_test.go +++ b/test/loading_test.go @@ -7,7 +7,7 @@ import ( func (ts *PackerTestSuite) TestLoadingOrder() { t := ts.T() - pluginDir, cleanup := ts.MakePluginDir(t, "1.0.9", "1.0.10") + pluginDir, cleanup := ts.MakePluginDir("1.0.9", "1.0.10") defer cleanup() for _, command := range []string{"build", "validate"} { diff --git a/test/plugin_test.go b/test/plugin_test.go index c6c63c296..2d1e91af3 100644 --- a/test/plugin_test.go +++ b/test/plugin_test.go @@ -140,7 +140,9 @@ func currentDir() (string, error) { // packer will be able to use that directory for running its functions. // // Deletion of the directory is the caller's responsibility. -func (ts *PackerTestSuite) MakePluginDir(t *testing.T, pluginVersions ...string) (pluginTempDir string, cleanup func()) { +func (ts *PackerTestSuite) MakePluginDir(pluginVersions ...string) (pluginTempDir string, cleanup func()) { + t := ts.T() + var err error defer func() {