Skip to content

Commit

Permalink
switches analytics relay test from dev to prod (#10017)
Browse files Browse the repository at this point in the history
* switches analytics relay test from dev to prod

* Update test/integration/relay-analytics/test/index.test.js

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>

Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
2 people authored and timneutkens committed Jan 9, 2020
1 parent a5ae018 commit 1fe6e9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/relay-analytics/test/index.test.js
Expand Up @@ -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
Expand All @@ -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))

Expand Down

0 comments on commit 1fe6e9b

Please sign in to comment.