Skip to content

Commit 8f95fa3

Browse files
Increase timeout and update configs
1 parent f977feb commit 8f95fa3

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

configs/configurations/memory_usage/iocs.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" ?>
12
<iocs xmlns="http://epics.isis.rl.ac.uk/schema/iocs/1.0" xmlns:ioc="http://epics.isis.rl.ac.uk/schema/iocs/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
23
<ioc autostart="true" name="COUETTE_01" remotePvPrefix="" restart="true" simlevel="recsim">
34
<macros />
@@ -99,4 +100,4 @@
99100
<pvs />
100101
<pvsets />
101102
</ioc>
102-
</iocs>
103+
</iocs>

configs/configurations/memory_usage/meta.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
<edit>2019-02-04 12:15:24</edit>
77
</edits>
88
<isProtected>false</isProtected>
9+
<isDynamic>false</isDynamic>
910
<configuresBlockGWAndArchiver>false</configuresBlockGWAndArchiver>
1011
</meta>

test_memory_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUp(self) -> None:
3030
# all tests that interact with anything but genie should try to load
3131
# a config to ensure that the configurations
3232
# in the tests are not broken, e.g. by a schema update
33-
load_config_if_not_already_loaded(TYPICAL_CONFIG_NAME)
33+
load_config_if_not_already_loaded(TYPICAL_CONFIG_NAME, timeout=360)
3434

3535
def get_current_memory_usage(self) -> float:
3636
"""

utilities/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def parameterized_list(cases):
6868
return return_list
6969

7070

71-
def load_config_if_not_already_loaded(config_name):
71+
def load_config_if_not_already_loaded(config_name, timeout=WAIT_FOR_SERVER_TIMEOUT):
7272
"""
7373
Load a config by name if it has not already been loaded.
7474
@@ -86,7 +86,7 @@ def load_config_if_not_already_loaded(config_name):
8686

8787
g.set_pv("CS:BLOCKSERVER:LOAD_CONFIG", value=compress_and_hex(config_name), is_local=True)
8888
status_was_busy = False
89-
for i in range(WAIT_FOR_SERVER_TIMEOUT):
89+
for i in range(timeout):
9090
status = get_server_status()
9191
if status_was_busy and status == "":
9292
break

0 commit comments

Comments
 (0)