Skip to content

Commit

Permalink
add connect refresh test
Browse files Browse the repository at this point in the history
  • Loading branch information
hutch3232 committed Feb 12, 2025
1 parent f603aad commit e134659
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions s3fs/tests/test_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@ def test_user_session_is_preserved():


def test_idempotent_connect(s3):
first = s3.s3
assert s3.connect(refresh=True) is not first
stale_s3 = s3.s3
stale_session = s3.session
s3.connect(refresh=True)
assert stale_s3 is not s3.s3
assert stale_session is not s3.session


def test_multiple_objects(s3):
Expand Down

0 comments on commit e134659

Please sign in to comment.