Close database connection in test database setup
A database connection was being overwritten by a second connection, which means the first connection was never being closed by the defer statement. This commit fixes that.
fixes: #3871 (closed)
A database connection was being overwritten by a second connection, which means the first connection was never being closed by the defer statement. This commit fixes that.
fixes: #3871 (closed)