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

w3vm: fix usage of w3vm.NewTestingRPCFetcher in subtests #217

Open
lmittmann opened this issue Feb 14, 2025 · 0 comments
Open

w3vm: fix usage of w3vm.NewTestingRPCFetcher in subtests #217

lmittmann opened this issue Feb 14, 2025 · 0 comments
Assignees

Comments

@lmittmann
Copy link
Owner

lmittmann commented Feb 14, 2025

Issue

  • sub-tests are invoked independently, thus runtime.Callers can't access the info of the root test
  • os.Getwd() can be used, to get the current directory of a test. However, that dir might be changed using t.Chdir(..). If Chdir was called that can not be detected on t.

Solution

  • don't support the persistent test fetcher in sub tests :/
  • store state data in the module root in a single dir for all packages
@lmittmann lmittmann self-assigned this Feb 14, 2025
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

No branches or pull requests

1 participant