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

testhelper.TestDriver can't be reconnected after Close() #28

Open
jchampio opened this issue Aug 14, 2018 · 0 comments
Open

testhelper.TestDriver can't be reconnected after Close() #28

jchampio opened this issue Aug 14, 2018 · 0 comments

Comments

@jchampio
Copy link

It looks like TestDriver.Connect() doesn't recreate its underlying sqlx.DB, which means that if a mock connection created using CreateAndConnectMockDB() is closed and reconnected, queries on the "new" connection will fail with sql: database is closed.

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

1 participant