Skip to content

Commit

Permalink
e2e: Don't check memory usage on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bersace committed Dec 9, 2024
1 parent 03bfbb9 commit 870f2a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_30_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from time import sleep

from selenium.webdriver.common.keys import Keys
Expand Down Expand Up @@ -28,7 +29,9 @@ def test_dashboard(browser, registered_agent, ui_url):

memory, percent = browser.select("#total-memory").text.split()
assert "%" == percent
assert int(memory) > 1
if os.environ.get("CI") != "true":
# It seems that CircleCI prevent proper memory stats.
assert int(memory) > 1

memory, unit = browser.select("#memory").text.split()
assert unit.endswith("B")
Expand Down

0 comments on commit 870f2a9

Please sign in to comment.