We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeec46f commit 2fe3e80Copy full SHA for 2fe3e80
1 file changed
ui/cli/main_test.go
@@ -50,7 +50,7 @@ func setupTestDB(t *testing.T) {
50
// Construct a unique in-memory DSN using the TempDir basename so each
51
// test gets an isolated DB instance.
52
tmpDir := t.TempDir()
53
- base := filepath.Base(tmpDir)
+ base := fmt.Sprintf("%d_%s", time.Now().UnixNano(), filepath.Base(tmpDir))
54
dsn := fmt.Sprintf("file:%s_keymaster_test?mode=memory&cache=shared", base)
55
56
viper.Set("database.type", "sqlite")
0 commit comments