-
Notifications
You must be signed in to change notification settings - Fork 174
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
[NDB_Factory] Remove testing mode #7199
Conversation
The "Testing" mode in NDB_Factory complicates our code and frequently confuses phan. It appears to not be used by our testing suite, and the test suite often explicitly sets it to not-test mode in order to get real connections, and uses setDatabase/setConfig/etc to inject mocks rather than using the factory's internal test mode. This removes the mode and simplifies our code.
@driusan This commit should be helpful. |
19608db
to
3bf3057
Compare
6bd673c
to
81deef5
Compare
@kongtiaowang Now that this is passing Travis can you review? It's blocking something else that I was trying to do that I couldn't get phan to pass because of the (previous) convoluted return types in different paths. |
@kongtiaowang can you please review this now that it's passing Travis. It's blocking other work. |
@kongtiaowang This is still preventing important work on LORIS from going forward. Please review. |
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 have no problem with this PR.
LGTM.
The "Testing" mode in NDB_Factory complicates our code and frequently confuses phan. It appears to not be used by our testing suite, and the test suite often explicitly sets it to not-test mode in order to get real connections, and uses setDatabase/setConfig/etc to inject mocks rather than using the factory's internal test mode. This removes the mode and simplifies our code.
The "Testing" mode in NDB_Factory complicates our code
and frequently confuses phan. It appears to not be used
by our testing suite, and the test suite often explicitly
sets it to not-test mode in order to get real connections,
and uses setDatabase/setConfig/etc to inject mocks rather
than using the factory's internal test mode. This removes
the mode in order to simplify our code.