Skip to content

Commit

Permalink
test: Also retry opening of storage content tabs
Browse files Browse the repository at this point in the history
This might also fail when React closes the tab unexpectedly.
  • Loading branch information
mvollmer authored and martinpitt committed Sep 27, 2023
1 parent ecdb2e9 commit 515b6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/storagelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ def content_tab_expand(self, row_index, tab_index):

def retry_in_content_tab(self, row_index, tab_index, func):
def step():
tab = self.content_tab_expand(row_index, tab_index)
try:
# We want anything in FUNC to fail really
# fast. Otherwise we have to wait really long for
# actual failures.
with self.browser.wait_timeout(0):
tab = self.content_tab_expand(row_index, tab_index)
func(tab)
return True
except Error:
Expand Down

0 comments on commit 515b6bc

Please sign in to comment.