Skip to content

Commit fdc13ce

Browse files
authored
Merge pull request #16 from matrix-org/michaelk/remove_wait
Remove the 'wait' action as it is better implemented as asyncio.sleep() on the server
2 parents 5acc151 + 59986f0 commit fdc13ce

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

cypress/e2e/trafficlight/actions/browser.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ export function idle(): void {
2020
cy.wait(5000);
2121
}
2222

23-
export function wait(time: string): string {
24-
const _time = time ? parseInt(time, 10): 5000;
25-
cy.wait(_time);
26-
return "wait_over";
27-
}
28-
2923
export function advanceClock(milliseconds: string): string {
3024
const millisecondsAsNumber = parseInt(milliseconds, 10);
3125
if (isNaN(millisecondsAsNumber)) {

cypress/e2e/trafficlight/trafficlight.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121
import fetch from "node-fetch";
2222

2323
import { login, logout, register } from "./actions/auth";
24-
import { advanceClock, clearIDBStorage, exit, idle, reload, wait } from "./actions/browser";
24+
import { advanceClock, clearIDBStorage, exit, idle, reload } from "./actions/browser";
2525
import {
2626
acceptCrossSigningRequest,
2727
enableDehydratedDevice,
@@ -242,10 +242,6 @@ function runAction(action: string, data: JSONValue): string | JSONValue | undefi
242242
case 'idle':
243243
idle();
244244
break;
245-
case 'wait': {
246-
const time = data?.["time"];
247-
return wait(time);
248-
}
249245
case "advance_clock": {
250246
const milliseconds = data["milliseconds"];
251247
if (!milliseconds) {

0 commit comments

Comments
 (0)