alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.53k stars 5.14k forks source link

fix(test): ensure setupStorages is executed once #6422

Closed Moraxyc closed 1 month ago

Moraxyc commented 2 months ago

In TestGetStorageVirtualFilesByPath() and TestGetBalancedStorage(), setupStorages() was being called twice, leading to a "UNIQUE constraint failed" error.

welcome[bot] commented 2 months ago

Thanks for opening this pull request! Please check out our contributing guidelines.

welcome[bot] commented 1 month ago

Congrats on merging your first pull request! We here at behavior bot are proud of you!