API: Clean up nodes dir in internal/api/api_test.go #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-18 17:51:23 +02:00
parent 1315df8c1f
commit 83a12fb58b

View File

@@ -38,6 +38,10 @@ func TestMain(m *testing.M) {
get.SetConfig(c)
defer c.CloseDb()
// Tiny cleanup: ensure a clean registry for cluster/node tests.
// This avoids flaky conflicts when files from previous runs exist.
_ = os.RemoveAll(c.PortalConfigPath() + "/nodes")
// Increase login rate limit for testing.
limiter.Login = limiter.NewLimit(1, 10000)