mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #1186] [MERGED] Unify logic for seeding the server from a directory #1270
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/1186
Author: @fsouza
Created: 5/28/2023
Status: ✅ Merged
Merged: 5/28/2023
Merged by: @fsouza
Base:
main← Head:unify-seeding📝 Commits (1)
05ec835Unify logic for seeding the server from a directory📊 Changes
4 files changed (+74 additions, -311 deletions)
View changed files
📝
fakestorage/server.go(+28 -3)📝
fakestorage/server_test.go(+46 -2)📝
main.go(+0 -72)➖
main_test.go(+0 -234)📄 Description
This should fix the flaky test: both the main and the fakestorage packages would create that directory and delete it, and since package tests run in parallel, there was a race between deleting and running the tests for generateObjectsFromFiles. I'm surprise we only observe flakiness on Windows.
On top of fixing the test, this also reduces code duplication. One downside is that we lose an info log, but I'm not too moved by that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.