-
Notifications
You must be signed in to change notification settings - Fork 2k
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 broken unit tests on CI machine #370
Conversation
…into release Conflicts: microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/scenarios/MediaServiceWrapper.java
"Endpoint=sb://%1$s.servicebus.windows.net/;StsEndpoint=https://%1$s%4$s;SharedSecretIssuer=%2$s;SharedSecretValue=%3$s", | ||
ns, issuer, secret, stsEndpoint); | ||
return String | ||
.format("Endpoint=sb://%1$s.servicebus.windows.net/;StsEndpoint=https://%1$s%4$s;SharedSecretIssuer=%2$s;SharedSecretValue=%3$s", |
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.
Nit: should the .format
be on same line with String
?
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.
this was auto-formated by Eclipse, I guess when the line is long enough, Eclipse will try to put it into two lines. Even if I change it back, next time we click save, it will be changed into two line format :(
LGTM |
assertEquals(message + " id", id, mediaProcessorInfo.getId()); | ||
assertEquals(message + " name", name, mediaProcessorInfo.getName()); | ||
assertEquals(message + " description", description, mediaProcessorInfo.getDescription()); | ||
assertEquals(message + " sku", sku, mediaProcessorInfo.getSku()); | ||
assertEquals(message + " vendor", vendor, mediaProcessorInfo.getVendor()); | ||
assertEquals(message + " version", version, mediaProcessorInfo.getVersion()); |
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 media services no longer returning version numbers, or is it that they're churning too quickly to keep the test working?
If they change a lot, it might be worth having an assertNotNull on the getVersion call to make sure you got something, even if we can't control/predict what the actual value will be.
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.
It is a good idea to make some validation, I will add a little bit logic to ensure the length of the version element is greater than 0.
Fix broken unit tests on CI machine
Fix broken unit tests on CI machine
No description provided.