File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ func TestStdio(t *testing.T) {
44
44
}
45
45
tempFile .Close ()
46
46
mockServerPath := tempFile .Name ()
47
+
47
48
// Add .exe suffix on Windows
48
49
if runtime .GOOS == "windows" {
49
50
os .Remove (mockServerPath ) // Remove the empty file first
50
51
mockServerPath += ".exe"
51
52
}
53
+
52
54
if compileErr := compileTestServer (mockServerPath ); compileErr != nil {
53
55
t .Fatalf ("Failed to compile mock server: %v" , compileErr )
54
56
}
@@ -327,11 +329,13 @@ func TestStdioErrors(t *testing.T) {
327
329
}
328
330
tempFile .Close ()
329
331
mockServerPath := tempFile .Name ()
332
+
330
333
// Add .exe suffix on Windows
331
334
if runtime .GOOS == "windows" {
332
335
os .Remove (mockServerPath ) // Remove the empty file first
333
336
mockServerPath += ".exe"
334
337
}
338
+
335
339
if compileErr := compileTestServer (mockServerPath ); compileErr != nil {
336
340
t .Fatalf ("Failed to compile mock server: %v" , compileErr )
337
341
}
@@ -364,11 +368,13 @@ func TestStdioErrors(t *testing.T) {
364
368
}
365
369
tempFile .Close ()
366
370
mockServerPath := tempFile .Name ()
371
+
367
372
// Add .exe suffix on Windows
368
373
if runtime .GOOS == "windows" {
369
374
os .Remove (mockServerPath ) // Remove the empty file first
370
375
mockServerPath += ".exe"
371
376
}
377
+
372
378
if compileErr := compileTestServer (mockServerPath ); compileErr != nil {
373
379
t .Fatalf ("Failed to compile mock server: %v" , compileErr )
374
380
}
You can’t perform that action at this time.
0 commit comments