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
TestEntitlement CI Problem #1694
Comments
|
IMO the problem is lied in line ~872 : Lets take a look at other assertion in In short, in snippet below, there's no guarantee that, final Subscription entitlementJson = subscriptionApi.createSubscription( ... ) // line ~849 The With this in mind, back to first sentence of this comment, assertion in this line: Assert.assertEquals(subscription, entitlementJson); will not always equal, because This is the diff of those 2 objects: https://www.diffchecker.com/uHlaknex |
Yup, you're right! This comment explains it actually: killbill/profiles/killbill/src/test/java/org/killbill/billing/jaxrs/TestEntitlement.java Line 1419 in ea72fab
I would remove |
Fixed by this commit: 081c08c |
Sometimes in CI,
TestEntitlement#testCreateSubscriptionBillingInThePast()
has assertion error (that will described below). This is the first PR that encounter this problem.But when run this test in local using IDE,
TestEntitlement#testCreateSubscriptionBillingInThePast()
result is Ok and consistent without any problem. RunningTestEntitlement
in terminal usingmvn test -Dorg.killbill.billing.dbi.test.mysql=true -Dtest="TestEntitlement"
command is Ok without problem.On the other side (but not sure if this is related to the main problem), running
TestEntitlement
test suite using IDE locally will lead to failed test inTestEntitlement#testSubscriptionEventsWithCatalogChange()
(Log in comment)Local test done both in linux (ubuntu) and macOS, using OpenJDK 11.
TestEntitlement#testCreateSubscriptionBillingInThePast()
log:The text was updated successfully, but these errors were encountered: