Commit 1fe6e9bb authored by Prateek Bhatnagar's avatar Prateek Bhatnagar Committed by Tim Neutkens

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: 's avatarJoe Haddad <joe.haddad@zeit.co>
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent a5ae018a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* global jasmine */ /* global jasmine */
import { join } from 'path' import { join } from 'path'
import webdriver from 'next-webdriver' 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, '../') const appDir = join(__dirname, '../')
let appPort let appPort
...@@ -12,7 +12,8 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 ...@@ -12,7 +12,8 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
describe('Analytics relayer', () => { describe('Analytics relayer', () => {
beforeAll(async () => { beforeAll(async () => {
appPort = await findPort() appPort = await findPort()
server = await launchApp(appDir, appPort) await nextBuild(appDir)
server = await nextStart(appDir, appPort)
}) })
afterAll(() => killApp(server)) afterAll(() => killApp(server))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment