Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Oct 31, 2024
1 parent 30a8680 commit 66fa80c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions scripts/test-uis.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@
"Message": "IC0406: Caller 2vxsx-fae is not allowed to query ic00 method fetch_canister_logs"
""".strip(),
"/index.js",
),
(
"""
AgentError: Call failed:
Canister: aaaaa-aa
Method: fetch_canister_logs (query)
"Status": "rejected"
"Code": "CanisterReject"
"Message": "IC0406: Caller 2vxsx-fae is not allowed to query ic00 method fetch_canister_logs"
at http://127.0.0.1:4943/index.js:2:55325
at async getCanisterLogs (http://127.0.0.1:4943/index.js:2:305332)
""".strip(),
"/index.js",
)
]
_CANDID_UI_ERRORS_TO_IGNORE = [
Expand Down Expand Up @@ -144,7 +131,7 @@ def _check_console_logs(console_logs):
for actual_text, endpoint in (
_CANDID_UI_ERRORS_TO_IGNORE if log.type == "error" else _CANDID_UI_WARNINGS_TO_IGNORE
):
if actual_text == log.text.strip() and endpoint in url:
if actual_text.startsWith(log.text.strip()) and endpoint in url:
logging.warning(
f'Found {log.type}, but it was expected (log.type="{actual_text}", endpoint="{endpoint}")'
)
Expand Down

0 comments on commit 66fa80c

Please sign in to comment.