mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-01-15 10:41:25 +01:00
refactor: add root store (#1153)
This commit is contained in:
@@ -27,7 +27,7 @@ func TestSQLMigration_UpAndDown(t *testing.T) {
|
||||
require.NoError(t, m.up(t.Context(), queries, dir, uploader))
|
||||
|
||||
// Table should exist
|
||||
_, err = queries.WriteDB.Exec("INSERT INTO test_table (name) VALUES ('foo')")
|
||||
_, err = queries.WriteDB.ExecContext(t.Context(), "INSERT INTO test_table (name) VALUES ('foo')")
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ func TestVersionAndSetVersion(t *testing.T) {
|
||||
|
||||
db, err := sql.Open("sqlite3", ":memory:")
|
||||
require.NoError(t, err, "failed to open in-memory db")
|
||||
|
||||
defer db.Close()
|
||||
|
||||
ver, err := version(t.Context(), db)
|
||||
|
||||
Reference in New Issue
Block a user