-
Notifications
You must be signed in to change notification settings - Fork 213
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
Fix flaky completion test and clean up console #1864
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,9 +123,7 @@ export async function run<T>(around: () => Promise<T>): Promise<T> { | |
} | ||
}) | ||
|
||
const server = app.listen(SERVER_PORT, () => { | ||
console.log(`Mock server listening on port ${SERVER_PORT}`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not helpful. Tests should only log something if something fails IMO |
||
}) | ||
const server = app.listen(SERVER_PORT) | ||
|
||
const result = await around() | ||
|
||
|
@@ -135,6 +133,10 @@ export async function run<T>(around: () => Promise<T>): Promise<T> { | |
} | ||
|
||
export async function logTestingData(type: 'legacy' | 'new', data: string): Promise<void> { | ||
if (process.env.CI === undefined) { | ||
return | ||
} | ||
Comment on lines
+136
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akalia25 is it okay if this runs only on our CI servers? Otherwise this makes local development a PITA There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, of course! I appreciate you checking 🙇 |
||
|
||
const message = { | ||
type, | ||
event: data, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to sneak this in anyways; If we have a line like this:
we don't want to trigger a completion regardless of wether we print a semi or not.