Просмотр исходного кода

ci(device): update tests for new fake versions and increased retries

Now we make two full rounds of the protocol list, and a couple further (basically doubled).
This means the addition of some more 3.4, 3.5 tries for the fake 3.42 asnd 3.52, before
repeating the whole list again, and instead of wrapping to one more, wrapping to two more
compared with before.
Jason Rumney 1 день назад
Родитель
Сommit
bb07382b69
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      tests/test_device.py

+ 11 - 0
tests/test_device.py

@@ -175,11 +175,22 @@ async def test_api_protocol_version_is_rotated_with_each_failure(
 
     mock_api().set_version.assert_has_calls(
         [
+            mocker.call(3.3),
             mocker.call(3.1),
             mocker.call(3.2),
             mocker.call(3.4),
             mocker.call(3.5),
             mocker.call(3.3),
+            mocker.call(3.4),
+            mocker.call(3.5),
+            mocker.call(3.3),
+            mocker.call(3.1),
+            mocker.call(3.2),
+            mocker.call(3.4),
+            mocker.call(3.5),
+            mocker.call(3.3),
+            mocker.call(3.4),
+            mocker.call(3.5),
             mocker.call(3.3),
             mocker.call(3.1),
         ]