فهرست منبع

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 ماه پیش
والد
کامیت
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),
         ]