test: name temp sqlite db x-ui.db to match the real db filename

This commit is contained in:
MHSanaei
2026-05-31 15:25:05 +02:00
parent 3f6fe1167d
commit b94e859e73
5 changed files with 7 additions and 7 deletions
@@ -45,7 +45,7 @@ func setupIntegrationDB(t *testing.T) {
log.SetFlags(origLogFlags)
})
if err := database.InitDB(filepath.Join(dbDir, "3x-ui.db")); err != nil {
if err := database.InitDB(filepath.Join(dbDir, "x-ui.db")); err != nil {
t.Fatalf("database.InitDB failed: %v", err)
}
// LIFO cleanup order: this runs before t.TempDir's own cleanup.