Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant