Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file already closed error for cli reading logs from go test #1709

Open
bharathkkb opened this issue Jul 13, 2023 · 1 comment
Open

file already closed error for cli reading logs from go test #1709

bharathkkb opened this issue Jul 13, 2023 · 1 comment
Labels

Comments

@bharathkkb
Copy link
Member

An error like lvl=eror msg="error reading output: read |0: file already closed" was reported which seems to be from

Log.Error(fmt.Sprintf("error reading output: %v", err))

I think in some edge case of cmd termination there could be a synchronization issue between the logging go routine and waiting for the cmd.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant