Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 869fced

Browse files
authored
[skip-changelog] Fix integration test runner (#2986)
1 parent 571dc02 commit 869fced

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎internal/integrationtest/arduino-cli.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,16 +410,16 @@ func (cli *ArduinoCLI) run(ctx context.Context, stdoutBuff, stderrBuff io.Writer
410410
}
411411
}()
412412
if stdinBuff != nil {
413+
wg.Add(1)
413414
go func() {
415+
defer wg.Done()
414416
if _, err := io.Copy(stdin, stdinBuff); err != nil {
415417
fmt.Fprintln(terminalErr, color.HiBlackString("<<< stdin copy error:"), err)
416418
}
417419
}()
418420
}
419-
cliErr := cliProc.WaitWithinContext(ctx)
420421
wg.Wait()
421-
422-
return cliErr
422+
return cliProc.WaitWithinContext(ctx)
423423
}
424424

425425
// StartDaemon starts the Arduino CLI daemon. It returns the address of the daemon.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /