Skip to content
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

Unit tests failing in oracle database #175

Closed
dpakach opened this issue Nov 14, 2018 · 4 comments
Closed

Unit tests failing in oracle database #175

dpakach opened this issue Nov 14, 2018 · 4 comments
Assignees
Labels

Comments

@dpakach
Copy link
Contributor

dpakach commented Nov 14, 2018

when running unit tests in oracle database in drone this error occurs

1) OCA\CustomGroups\Tests\unit\CustomGroupsDatabaseHandlerTest::testGetGroupsByDisplayName
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'my_group_1'
+'my_group_3'

The drone link for this error is here

@PVince81
Copy link
Contributor

hmmm, this sometimes happen if the unit tests are relying too much on database result order.
I might have missed doing this when writing them and it is known from experience that sometimes Oracle returns results out of order...

@PVince81
Copy link
Contributor

@dpakach I assume you discovered this as part of your work in #173 ?

and perhaps we did not enable Oracle before so the issue was not discovered ?

in the future please link relevant tickets :-)

@dpakach
Copy link
Contributor Author

dpakach commented Nov 15, 2018

@PVince81 yes, the tests which are in travis never used oracle so it might have missed before

@PVince81
Copy link
Contributor

Fix is here: #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants