Closed mtlynch closed 1 year ago
Having multiple tests use :memory: can cause Go to reuse the database across tests. Using a random filename preserves the in-memory behavior without the risk of cross-test contamination.
Having multiple tests use :memory: can cause Go to reuse the database across tests. Using a random filename preserves the in-memory behavior without the risk of cross-test contamination.