Skip to content

Commit 6f28020

Browse files
authored
Merge branch 'main' into dev
2 parents 87dcc19 + 9d6b793 commit 6f28020

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/transport/stdio_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ func TestStdio(t *testing.T) {
4444
}
4545
tempFile.Close()
4646
mockServerPath := tempFile.Name()
47+
4748
// Add .exe suffix on Windows
4849
if runtime.GOOS == "windows" {
4950
os.Remove(mockServerPath) // Remove the empty file first
5051
mockServerPath += ".exe"
5152
}
53+
5254
if compileErr := compileTestServer(mockServerPath); compileErr != nil {
5355
t.Fatalf("Failed to compile mock server: %v", compileErr)
5456
}
@@ -327,11 +329,13 @@ func TestStdioErrors(t *testing.T) {
327329
}
328330
tempFile.Close()
329331
mockServerPath := tempFile.Name()
332+
330333
// Add .exe suffix on Windows
331334
if runtime.GOOS == "windows" {
332335
os.Remove(mockServerPath) // Remove the empty file first
333336
mockServerPath += ".exe"
334337
}
338+
335339
if compileErr := compileTestServer(mockServerPath); compileErr != nil {
336340
t.Fatalf("Failed to compile mock server: %v", compileErr)
337341
}
@@ -364,11 +368,13 @@ func TestStdioErrors(t *testing.T) {
364368
}
365369
tempFile.Close()
366370
mockServerPath := tempFile.Name()
371+
367372
// Add .exe suffix on Windows
368373
if runtime.GOOS == "windows" {
369374
os.Remove(mockServerPath) // Remove the empty file first
370375
mockServerPath += ".exe"
371376
}
377+
372378
if compileErr := compileTestServer(mockServerPath); compileErr != nil {
373379
t.Fatalf("Failed to compile mock server: %v", compileErr)
374380
}

0 commit comments

Comments
 (0)