Skip to content

Commit 73ebc7f

Browse files
committed
fix: fixing broken link in verify urls
1 parent 0f65cba commit 73ebc7f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/unit/test_verify_links.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
14+
import time
1515
from os import path, walk
1616
from re import findall, search
1717
from typing import List
@@ -68,4 +68,11 @@ def test_verify_urls(urls_list: list):
6868
response = request("GET", url)
6969

7070
assert "jdbc" not in url
71+
72+
if response.status_code == 202:
73+
attempts = 1
74+
while attempts < 10 and response.status_code == 202:
75+
time.sleep(20)
76+
response = request("GET", url)
77+
attempts += 1
7178
assert response.status_code == 200

0 commit comments

Comments
 (0)