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 test fails using Postgres #2

Open
mchurchward opened this issue Oct 3, 2016 · 4 comments
Open

Unit test fails using Postgres #2

mchurchward opened this issue Oct 3, 2016 · 4 comments

Comments

@mchurchward
Copy link

A unit test that works with MySQL fails under Postgres.
MySQL version - https://travis-ci.org/POETGroup/moodle-report_ncccscensus/jobs/164651761#L701
Postgres version - https://travis-ci.org/POETGroup/moodle-report_ncccscensus/jobs/164651760#L701

This may be related to #1 ?

@mchurchward
Copy link
Author

This is not related to issue #1. The problem is that the unit test depends on the order of courses returned from 'report_ncccscensus_get_courses'. It is presuming they are returned in order of "id" but the function does not specify an order.
I believe the test is written incorrectly and should not depend on the order.

@tbannister
Copy link

That's pretty much my conclusion. I found the same problem on Friday, and am fixing it today.

@mchurchward
Copy link
Author

Don't worry. I just fixed it. I'll supply the pull request momentarily.

@mchurchward
Copy link
Author

mchurchward commented Oct 3, 2016

This pull fixes this issue = PoetOS@3d99414
It also fixes some coding guideline issues.
I have to figure out how to change the basefork of POET's fork now.
This pull is off of the MOODLE_31_STABLE branch.

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

No branches or pull requests

2 participants