Skip to content

Commit

Permalink
Merge pull request #16 from simonsobs/dev
Browse files Browse the repository at this point in the history
Adapt the namespace `ctrl` in GraphQL queries
  • Loading branch information
TaiSakuma committed May 15, 2024
2 parents c558456 + c039cef commit 866c506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ async def test_plugin(client: TestClient):

n_runs = 0
async for data in gql_subscribe(client, SUBSCRIBE_STATE):
if data['state'] == 'running':
if data['ctrlState'] == 'running':
turned_on.set()
n_runs += 1
if n_runs >= 3:
data = await gql_request(client, MUTATE_AUTO_MODE_TURN_OFF)
break

async for data in gql_subscribe(client, SUBSCRIBE_STATE):
if data['state'] == 'finished':
if data['ctrlState'] == 'finished':
break

await task
Expand Down

0 comments on commit 866c506

Please sign in to comment.