Skip to content

bug: oli tests failed when TMPDIR is not /tmp #6428

@XYenon

Description

@XYenon

Describe the bug

oli tests edit::{test_edit_file_content_replacement,test_edit_existing_file_with_changes,test_edit_new_file} failed when TMPDIR env is not set to /tmp

    3       │-File uploaded successfully to tmp[TEMP_DIR]/replace_test.txt
          3 │+File uploaded successfully to var[TEMP_DIR]/replace_test.txt

Steps to Reproduce

cd opendal/bin/oli
# This is my macOS default value
export TMPDIR=/var/folders/b1/0fd1b6hs7lz0fm_mh346lybm0000gn/T/
cargo test

Expected Behavior

Tests pass

Additional Context

No response

Are you willing to submit a PR to fix this bug?

  • Yes, I would like to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions