Skip to content

Commit 8182ca6

Browse files
Ivan GorshkovIvan Gorshkov
authored andcommitted
tests
1 parent 2dd2403 commit 8182ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration/customcode_singletarget_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestCustomCode(t *testing.T) {
1818
t.Parallel()
1919

2020
// Build the speakeasy binary once for all subtests
21-
speakeasyBinary := buildSpeakeasyBinaryOnce(t)
21+
speakeasyBinary := buildSpeakeasyBinaryOnce(t, "speakeasy-customcode-test-binary")
2222

2323
t.Run("BasicWorkflow", func(t *testing.T) {
2424
t.Parallel()
@@ -330,12 +330,12 @@ func testCustomCodeConflictDetectionDuringRegistration(t *testing.T, speakeasyBi
330330
}
331331

332332
// buildSpeakeasyBinaryOnce builds the speakeasy binary and returns the path to it
333-
func buildSpeakeasyBinaryOnce(t *testing.T) string {
333+
func buildSpeakeasyBinaryOnce(t *testing.T, binaryName string) string {
334334
t.Helper()
335335

336336
_, filename, _, _ := runtime.Caller(0)
337337
baseFolder := filepath.Join(filepath.Dir(filename), "..")
338-
binaryPath := filepath.Join(baseFolder, "speakeasy-customcode-test-binary")
338+
binaryPath := filepath.Join(baseFolder, binaryName)
339339

340340
// Build the binary
341341
cmd := exec.Command("go", "build", "-o", binaryPath, "./main.go")

0 commit comments

Comments
 (0)