test(mockconfig): generate unique upload paths

This stops multiple concurrently running tests disturbing each other.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-11-16 18:25:00 +01:00
parent 424841de6d
commit 3a47e962ea
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -9,7 +9,8 @@ export default registerAs('mediaConfig', () => ({
backend: {
use: 'filesystem',
filesystem: {
uploadPath: 'test_uploads',
uploadPath:
'test_uploads' + Math.floor(Math.random() * 100000).toString(),
},
},
}));