Skip to content

Commit

Permalink
verify this fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Manoj committed Nov 30, 2023
1 parent 52516a2 commit ad035a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/sidecars/live_data_watcher_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def setUp(self):
sharded_file_key = default_file_key
else:
# All other copies should include the sharded prefix.
sharded_file_key = str(file_shard_num) + "/" + default_file_key
sharded_file_key = default_file_key
s3_client.put_object(
Bucket=bucket_name,
Key=sharded_file_key,
Expand Down Expand Up @@ -71,7 +71,9 @@ def test_s3_load_type_sharded_on_change(self):
expected_content = b'{"foo_encrypted": "bar_encrypted"}'

# For safe measure, run this 20 times. It should succeed every time.
# We've uploaded 5 files to S3 in setUp() and num_file_shards=5 in the ZK node so we should be fetching one of these 5 files randomly (and successfully) - and all should have the same content.
# We've uploaded 5 files to S3 in setUp() and num_file_shards=5 in the
# ZK node so we should be fetching one of these 5 files randomly (and successfully)
# and all should have the same content.
for i in range(20):
inst.on_change(new_content, None)
self.assertEqual(expected_content, dest.read_bytes())
Expand Down

0 comments on commit ad035a7

Please sign in to comment.