From d7b43f472228c985c7903e973cb4c21df936c313 Mon Sep 17 00:00:00 2001 From: shortcutme <tamas@zeronet.io> Date: Sat, 16 Mar 2019 00:51:32 +0100 Subject: [PATCH] Same priority file download order does not matter --- src/Test/TestSiteDownload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Test/TestSiteDownload.py b/src/Test/TestSiteDownload.py index 08d1e910..5a35663b 100644 --- a/src/Test/TestSiteDownload.py +++ b/src/Test/TestSiteDownload.py @@ -40,8 +40,8 @@ class TestSiteDownload: file_requests = [request[3]["inner_path"] for request in requests if request[1] in ("getFile", "streamFile")] # Test priority assert file_requests[0:2] == ["content.json", "index.html"] # Must-have files - assert file_requests[2:4] == ["data/img/multiuser.png", "data/img/direct_domains.png"] # Directly requested files - assert file_requests[4:6] == ["css/all.css", "js/all.js"] # Important assets + assert sorted(file_requests[2:4]) == ["data/img/direct_domains.png", "data/img/multiuser.png"] # Directly requested files + assert sorted(file_requests[4:6]) == ["css/all.css", "js/all.js"] # Important assets assert file_requests[6] == "dbschema.json" # Database map assert "-default" in file_requests[-1] # Put default files for cloning to the end