Skip to content

Commit 6ae9eca

Browse files
committed
Fix ems tests: add .spot venue token to fqme
1 parent 62874ee commit 6ae9eca

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_ems.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def test_ems_err_on_bad_broker(
164164
async def load_bad_fqme():
165165
try:
166166
async with (
167-
open_test_pikerd() as (_, _, _, _),
167+
open_test_pikerd(
168+
debug_mode=False,
169+
) as (_, _, _, _),
168170

169171
open_ems(
170172
'doggycoin.doggy',
@@ -173,8 +175,11 @@ async def load_bad_fqme():
173175
) as _
174176
):
175177
pytest.fail('EMS is working on non-broker!?')
176-
except ModuleNotFoundError:
177-
pass
178+
179+
# NOTE: emsd should error on the actor's enabled modules
180+
# import phase, when looking for a backend named `doggy`.
181+
except tractor.RemoteActorError as re:
182+
assert re.type == ModuleNotFoundError
178183

179184
run_and_tollerate_cancels(load_bad_fqme)
180185

@@ -241,8 +246,9 @@ async def submit_and_check(
241246
242247
'''
243248
broker: str = 'kraken'
249+
venue: str = 'spot'
244250
mkt_key: str = 'xbtusdt'
245-
fqme: str = f'{mkt_key}.{broker}'
251+
fqme: str = f'{mkt_key}.{venue}.{broker}'
246252

247253
startup_pps: dict[
248254
tuple[str, str], # brokername, acctid

0 commit comments

Comments
 (0)