Add Epiphany jobsUpdated notification
This commit is contained in:
parent
5308724b76
commit
48d6820d7d
22 changed files with 923 additions and 23 deletions
|
|
@ -302,6 +302,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"thread/epiphany/stateUpdated",
|
||||
start_index=missing_notification_start,
|
||||
)
|
||||
client.require_no_notification(
|
||||
"thread/epiphany/jobsUpdated",
|
||||
start_index=missing_notification_start,
|
||||
)
|
||||
|
||||
update_notification_start = len(client.notifications)
|
||||
update = client.send(
|
||||
|
|
@ -327,6 +331,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"thread/epiphany/stateUpdated",
|
||||
start_index=jobs_notification_start,
|
||||
)
|
||||
client.require_no_notification(
|
||||
"thread/epiphany/jobsUpdated",
|
||||
start_index=jobs_notification_start,
|
||||
)
|
||||
|
||||
final_read = client.send("thread/read", {"threadId": thread_id, "includeTurns": False})
|
||||
assert final_read is not None
|
||||
|
|
@ -360,6 +368,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
|
|||
"thread/epiphany/stateUpdated",
|
||||
start_index=jobs_notification_start,
|
||||
),
|
||||
"jobsUpdatedNotificationCount": client.count_notifications(
|
||||
"thread/epiphany/jobsUpdated",
|
||||
start_index=jobs_notification_start,
|
||||
),
|
||||
"finalReadRevision": final_read["thread"]["epiphanyState"]["revision"],
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue