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

Wrong docs of behavior test for setting up .env #4614

Open
NKID00 opened this issue May 15, 2024 · 1 comment
Open

Wrong docs of behavior test for setting up .env #4614

NKID00 opened this issue May 15, 2024 · 1 comment

Comments

@NKID00
Copy link
Contributor

NKID00 commented May 15, 2024

Docs of behavior test (and also docs of fuzzer) gives an example to set up .env with OPENDAL_FS_ROOT=/tmp, but tests would fail if .env was set up according to it with error as follows:

thread 'main' panicked at src/raw/tests/utils.rs:70:45:
must succeed: Unexpected (permanent) at Builder::build => create root dir failed

Context:
   root: /tmp162b96c0-ac99-44ac-89cf-839db11dce66/

Source:
   Permission denied (os error 13)

This is due to that the given root and random uuid were glued together without a slash.

Maybe we should change the docs to /tmp/ or to utilize Path::join to generate random roots.

@NKID00 NKID00 changed the title Wrong docs for Wrong docs of behavior test for setting up .env May 15, 2024
@Xuanwo
Copy link
Member

Xuanwo commented May 15, 2024

Maybe we should change the docs to /tmp/

Let's fix the docs. Thanks for the catch!

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

2 participants