Skip to content

Commit

Permalink
Run test cases on hns
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Oct 18, 2024
1 parent 63a456a commit 066f9d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tosfs/tests/test_tosfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,9 @@ def test_file_write_append(
else:
with tosfs.open(f"{bucket}/{temporary_workspace}/{file_name}", "a") as f:
f.write(content)
assert tosfs.info(f"{bucket}/{temporary_workspace}/{file_name}")["size"] == 2 * len(
content
)
assert tosfs.info(f"{bucket}/{temporary_workspace}/{file_name}")[
"size"
] == 2 * len(content)
with tosfs.open(f"{bucket}/{temporary_workspace}/{file_name}", "r") as f:
assert f.read() == content + content

Expand Down

0 comments on commit 066f9d3

Please sign in to comment.