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

use t.TempDir() in tests #10774

Merged
merged 2 commits into from
Jun 17, 2024
Merged

use t.TempDir() in tests #10774

merged 2 commits into from
Jun 17, 2024

Conversation

AskAlexSharov
Copy link
Collaborator

@AskAlexSharov AskAlexSharov commented Jun 17, 2024

for https://github.com/ledgerwatch/erigon/actions/runs/9517264736/job/26259577369?pr=10753#step:11:542

--- FAIL: TestBlockhash (0.01s)
    runtime_test.go:397: expected no error, got open /tmp/execute-vm/snapshots/salt-state.txt: no such file or directory
FAIL

don't use /tmp / os.TempDir() - because tests are run in-parallel.

Copy link
Member

@JkLondon JkLondon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All is ok but what is the motivation of that?

@AskAlexSharov
Copy link
Collaborator Author

All is ok but what is the motivation of that?

#10774 (comment)

@AskAlexSharov AskAlexSharov merged commit 73a90f9 into main Jun 17, 2024
10 checks passed
@AskAlexSharov AskAlexSharov deleted the use_random_tmpdir branch June 17, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants