Skip to content

Commit

Permalink
Change hns bucket name (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua authored Nov 21, 2024
1 parent 42682fd commit c3f6ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_hns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fsspec-version: ["2023.5.0", "2024.9.0", "2024.10.0"]
bucket-name: ["proton-ci-hns"]
bucket-name: ["proton-hns-ci"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
5 changes: 1 addition & 4 deletions tosfs/tests/test_tosfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,9 @@ def test_walk(tosfs: TosFileSystem, bucket: str, temporary_workspace: str) -> No
assert len(dirs) > 0
assert files == []

for root, dirs, files in tosfs.walk(bucket, maxdepth=1):
for root, dirs, _ in tosfs.walk(bucket, maxdepth=1):
assert root == bucket
assert len(dirs) > 0
assert len(files) > 0

dir_name = random_str()
sub_dir_name = random_str()
Expand Down Expand Up @@ -606,8 +605,6 @@ def test_find(tosfs: TosFileSystem, bucket: str, temporary_workspace: str) -> No
):
tosfs.find("/")

assert len(tosfs.find(bucket, maxdepth=1)) > 0

with pytest.raises(
ValueError,
match="Can not specify 'prefix' option " "alongside 'maxdepth' options.",
Expand Down

0 comments on commit c3f6ec9

Please sign in to comment.