Skip to content

Commit 9e3a527

Browse files
test: adds a debug mode to read from the server
1 parent 14101c1 commit 9e3a527

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/components/UI/Perps/utils/e2eBridgePerps.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ function startE2EPerpsCommandPolling(): void {
150150
const pollIntervalMs = Number(process.env.E2E_POLL_INTERVAL_MS || 2000);
151151
const host = getLocalHost();
152152
const port = getCommandQueueServerPort();
153-
const baseUrl = `http://${host}:${port}/queue.json`;
153+
// Change isDebug while developing E2E for Perps to avoid emptying out the queue
154+
const isDebug = false;
155+
const baseUrl = isDebug
156+
? `http://${host}:${port}/debug.json`
157+
: `http://${host}:${port}/queue.json`;
154158
const FETCH_TIMEOUT = 40000; // Timeout in milliseconds
155159

156160
function scheduleNext(delay: number): void {

0 commit comments

Comments
 (0)