From 1fe6e9bb1c67047bba39f34d424b518f666e9f83 Mon Sep 17 00:00:00 2001 From: Prateek Bhatnagar Date: Thu, 9 Jan 2020 11:40:26 -0800 Subject: [PATCH] switches analytics relay test from dev to prod (#10017) * switches analytics relay test from dev to prod * Update test/integration/relay-analytics/test/index.test.js Co-Authored-By: Joe Haddad Co-authored-by: Joe Haddad --- test/integration/relay-analytics/test/index.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/relay-analytics/test/index.test.js b/test/integration/relay-analytics/test/index.test.js index 7a9796a1caf5..d5c02861ec2b 100644 --- a/test/integration/relay-analytics/test/index.test.js +++ b/test/integration/relay-analytics/test/index.test.js @@ -2,7 +2,7 @@ /* global jasmine */ import { join } from 'path' import webdriver from 'next-webdriver' -import { killApp, findPort, launchApp } from 'next-test-utils' +import { killApp, findPort, nextBuild, nextStart } from 'next-test-utils' const appDir = join(__dirname, '../') let appPort @@ -12,7 +12,8 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 describe('Analytics relayer', () => { beforeAll(async () => { appPort = await findPort() - server = await launchApp(appDir, appPort) + await nextBuild(appDir) + server = await nextStart(appDir, appPort) }) afterAll(() => killApp(server))