mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #1970] [MERGED] fakeserver: honor Stop #1982
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#1982
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/1970
Author: @motiejus
Created: 5/26/2025
Status: ✅ Merged
Merged: 6/2/2025
Merged by: @fsouza
Base:
main← Head:server-start-stop📝 Commits (1)
e910714fakeserver: honor Stop📊 Changes
3 files changed (+28 additions, -6 deletions)
View changed files
📝
fakestorage/mux_transport.go(+5 -0)📝
fakestorage/server.go(+2 -4)📝
fakestorage/server_test.go(+21 -2)📄 Description
Problem: calling
server.Close()does not actually close anything — requests can flow as they normally would.That's because the client always uses
*muxTransport, which wires directly into the handlers avoiding all the TCP/HTTP dance.In days long gone,
Server.transportused to be HTTP, and starting/stopping the fakeserver did what one would expect.Add a test that asserts correct behavior (we depend on it in some our tests), also removing the
Server.transportambiguity, as there is no other use case in this repo.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.