mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user