From 3642e27deb06098f04789deb1010614c788f5487 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Tue, 3 Oct 2017 06:57:24 -0500 Subject: [PATCH] integration tests: remove unused parameter --- cmd/dep/integration_test.go | 8 ++++---- internal/test/integration/testproj.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/dep/integration_test.go b/cmd/dep/integration_test.go index 592518d8..5548cba5 100644 --- a/cmd/dep/integration_test.go +++ b/cmd/dep/integration_test.go @@ -44,8 +44,8 @@ func TestIntegration(t *testing.T) { t.Run(testName, func(t *testing.T) { t.Parallel() - t.Run("external", testIntegration(testName, relPath, wd, true, execCmd)) - t.Run("internal", testIntegration(testName, relPath, wd, false, runMain)) + t.Run("external", testIntegration(testName, relPath, wd, execCmd)) + t.Run("internal", testIntegration(testName, relPath, wd, runMain)) }) return nil @@ -88,13 +88,13 @@ func runMain(prog string, args []string, stdout, stderr io.Writer, dir string, e } // testIntegration runs the test specified by ///testcase.json -func testIntegration(name, relPath, wd string, externalProc bool, run integration.RunFunc) func(t *testing.T) { +func testIntegration(name, relPath, wd string, run integration.RunFunc) func(t *testing.T) { return func(t *testing.T) { t.Parallel() // Set up environment testCase := integration.NewTestCase(t, filepath.Join(wd, relPath), name) - testProj := integration.NewTestProject(t, testCase.InitialPath(), wd, externalProc, run) + testProj := integration.NewTestProject(t, testCase.InitialPath(), wd, run) defer testProj.Cleanup() // Create and checkout the vendor revisions diff --git a/internal/test/integration/testproj.go b/internal/test/integration/testproj.go index ebd07a76..760e1cc5 100644 --- a/internal/test/integration/testproj.go +++ b/internal/test/integration/testproj.go @@ -41,7 +41,7 @@ type TestProject struct { } // NewTestProject initializes a new test's project directory. -func NewTestProject(t *testing.T, initPath, wd string, externalProc bool, run RunFunc) *TestProject { +func NewTestProject(t *testing.T, initPath, wd string, run RunFunc) *TestProject { new := &TestProject{ t: t, origWd: wd,