-
Notifications
You must be signed in to change notification settings - Fork 38
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: correcting teardown for integ test and code cleanup #188
Conversation
@@ -295,6 +294,7 @@ Then( | |||
patchTask, | |||
getAdditionalHeaders(world.authToken) | |||
); | |||
// console.log('patchTaskId: ' + this['patchTaskId']); |
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.
Don't we need to remove this?
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 kept these because it's annoying to re-add when you're debugging, but I didn't want them there by default. They're in the tests, so I don't think they hurt anything. Can remove if you feel strongly about it.
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.
If we want them while debugging, would it make more sense to uncomment them and use console.debug?
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 changed it to use the logger (I'm not sure what's setting the console.log log level, but it's not working as expected). This consolidates in on the logger anyway, and we set that log level in the integ test script.
|
||
// delete all patches for the given device | ||
const deletionPromises = patches.map((patch): Promise<void> => { | ||
console.log(`deleting: ${patch.patchId}`); |
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.
Is there a reason to use console.log?
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.
These are in the integ tests, so I don't think it matters either way, but I removed it.
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'd remove them, but this is a NIT.
@@ -29,7 +29,7 @@ import { container } from '../di/inversify.config'; | |||
import { AUTHORIZATION_TOKEN } from '../step_definitions/common/common.steps'; | |||
import { getAdditionalHeaders } from '../step_definitions/notifications/notifications.utils'; | |||
|
|||
import { logger } from '@awssolutions/simple-cdf-logger'; | |||
// import { logger } from '@awssolutions/simple-cdf-logger'; |
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.
can we remove this as well?
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 kept these because it's annoying to re-add when you're debugging, but I didn't want them there by default. They're in the tests, so I don't think they hurt anything. Can remove if you feel strongly about it.
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 turned these back on and set them to the silly log level so they don't show in our current default log level.
Description
Type of change
Submission Checklist
Additional Notes: