Skip to content

Commit

Permalink
issue-757: should not unmount volume (in local-emergency test) before…
Browse files Browse the repository at this point in the history
… static BS group destruction in order to make emergency unexpected
  • Loading branch information
Mikhail Montsev committed Sep 19, 2024
1 parent e8a9dfd commit e35f82c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cloud/blockstore/tests/loadtest/local-emergency/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ def __run_test(test_case):
session = Session(client, "vol0", "")
session.mount_volume()
session.write_blocks(100500, [b'\1' * 4096])
# TODO: should not unmount volume to make emergency unexpected
session.unmount_volume()

client.execute_action(action="BackupPathDescriptions", input_bytes=str.encode(""))
client.execute_action(action="BackupTabletBootInfos", input_bytes=str.encode(""))
Expand All @@ -116,11 +114,9 @@ def __run_test(test_case):
env.nbs.storage_config_patches = [storage_config_with_emergency_mode(backups_folder)]
env.nbs.restart()

session.mount_volume()
data = session.read_blocks(100499, 3, "")
# check data (that was written) together with left & right neighborhood
assert data == [b''] + [b'\1' * 4096] + [b'']
# TODO: should not unmount volume to make emergency unexpected
session.unmount_volume()

try:
Expand Down

0 comments on commit e35f82c

Please sign in to comment.