Skip to content

Commit

Permalink
Fix python 3 test with aws endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Aug 22, 2019
1 parent 1a114f7 commit a57cc6d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion __tests__/integration/python3/python3.test.js
Expand Up @@ -8,6 +8,8 @@ const Serverless = require('serverless')
const ServerlessOffline = require('../../../src/ServerlessOffline.js')
const { detectPython3 } = require('../../../src/utils/index.js')

const endpoint = process.env.npm_config_endpoint

jest.setTimeout(60000)

describe('Python 3 tests', () => {
Expand All @@ -23,6 +25,10 @@ describe('Python 3 tests', () => {

// init
beforeAll(async () => {
if (endpoint) {
return
}

const serverless = new Serverless({
servicePath: resolve(__dirname),
})
Expand All @@ -36,10 +42,14 @@ describe('Python 3 tests', () => {

// cleanup
afterAll(async () => {
if (endpoint) {
return
}

return serverlessOffline.end()
})

const url = new URL('http://localhost:3000')
const url = new URL(endpoint || 'http://localhost:3000')

;[
{
Expand Down

0 comments on commit a57cc6d

Please sign in to comment.