tests: mark lit drive as flaky (#19155)

This commit is contained in:
Jirka Borovec 2023-12-14 14:59:45 +01:00 committed by GitHub
parent 3c1dc71447
commit df869c95d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class SyncFlowLITDrives(LightningFlow):
self.stop()
@pytest.mark.flaky(reruns=3, reruns_delay=5) # todo: likely dead feature, fine to crash...
def test_synchronization_lit_drive(tmpdir):
if os.path.exists("a.txt"):
os.remove("a.txt")
@ -104,12 +105,14 @@ class LITDriveFlow(LightningFlow):
self.stop()
@pytest.mark.flaky(reruns=3, reruns_delay=5) # todo: likely dead feature, fine to crash...
def test_lit_drive_transferring_files():
app = LightningApp(LITDriveFlow())
MultiProcessRuntime(app, start_server=False).dispatch()
os.remove("a.txt")
@pytest.mark.flaky(reruns=3, reruns_delay=5) # todo: likely dead feature, fine to crash...
def test_lit_drive():
with pytest.raises(Exception, match="Unknown protocol for the drive 'id' argument"):
Drive("invalid_drive_id")