-
Notifications
You must be signed in to change notification settings - Fork 2k
chore: refactor cloudsql_postgresql test #1700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 15 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
bd9e5dd
chore: refactor cloudsql_postgresql
sofisl 7039b84
Merge branch 'master' into cloudSQLPOSTGRESTest
sofisl 5e8395e
check: user, password and database env variables
sofisl 5bf5db5
Merge branch 'master' into cloudSQLPOSTGRESTest
sofisl e6b13b0
fix: try killing child process
sofisl dd5039c
try
sofisl a755c79
try
sofisl f025e89
try
sofisl 620bda9
try
sofisl 7ac61b6
try
sofisl a58dd3a
npm: runfix
sofisl 4db14a4
Merge branch 'master' into cloudSQLPOSTGRESTest
sofisl 55ea26c
fix: remove repo-tools dependency
sofisl 9de5955
Merge branch 'cloudSQLPOSTGRESTest' of github.com:sofisl/nodejs-docs-…
sofisl 7c3b6cc
fix dependencies
sofisl ad7a245
chore(deps): update dependency puppeteer to v3 (#1719)
renovate-bot ad7cd89
chore:refactor memcached test (#1698)
sofisl 2c26a14
healthcare API: update hl7v2 samples from v1beta1 to v1 (#1721)
noerog 068b7fc
chore: refactor cloudsql_postgresql
sofisl 3b5bb95
check: user, password and database env variables
sofisl 40eb2dd
fix: try killing child process
sofisl 5989d88
try
sofisl 02f841c
try
sofisl ba98372
try
sofisl 512a427
try
sofisl de47c04
try
sofisl d6718ec
npm: runfix
sofisl f4b3389
fix: remove repo-tools dependency
sofisl 8ce569e
fix dependencies
sofisl 7c238f1
chore: refactor cloudsql_postgresql
sofisl 79f0e58
check: user, password and database env variables
sofisl 39fcc4c
fix: try killing child process
sofisl 3a21368
try
sofisl b34f1b4
try
sofisl b4c2531
try
sofisl 12f095f
try
sofisl 43b6f9f
try
sofisl 216f91e
npm: runfix
sofisl 2604116
fix: remove repo-tools dependency
sofisl 65427cf
fix dependencies
sofisl 435f0f6
fix: rebase
sofisl 8801322
chore: refactor cloudsql_postgresql
sofisl 3837027
check: user, password and database env variables
sofisl 5385fe3
fix: try killing child process
sofisl e599468
try
sofisl 7723252
try
sofisl 89673dc
try
sofisl 3831f7c
try
sofisl b5048d1
npm: runfix
sofisl 9bc4952
try
sofisl 65e5f76
fix: remove repo-tools dependency
sofisl f53a2f2
fix dependencies
sofisl bbd831a
Merge branch 'cloudSQLPOSTGRESTest' of github.com:sofisl/nodejs-docs-…
sofisl a67c113
fix: rebase
sofisl 5ee82f4
Merge branch 'cloudSQLPOSTGRESTest' of github.com:sofisl/nodejs-docs-…
sofisl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
appengine/cloudsql_postgresql/test/serverListening.test.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| const waitPort = require('wait-port'); | ||
| const {expect} = require('chai'); | ||
| const PORT = process.env.PORT || 8080; | ||
| const childProcess = require('child_process'); | ||
| const path = require('path'); | ||
| const appPath = path.join(__dirname, '../server.js'); | ||
|
|
||
| describe('server listening', () => { | ||
| it('should be listening', async () => { | ||
| const child = childProcess.exec(`node ${appPath}`); | ||
| const isOpen = await waitPort({port: PORT}); | ||
| expect(isOpen).to.be.true; | ||
| process.kill(child.pid, 'SIGTERM'); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.