[PR #4] [MERGED] allow customizing the test server port #258

Closed
opened 2026-03-03 12:09:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/4
Author: @gracenoah
Created: 2/15/2018
Status: Merged
Merged: 2/15/2018
Merged by: @fsouza

Base: masterHead: custom-port


📝 Commits (1)

  • 6839464 allow customizing the test server port

📊 Changes

2 files changed (+60 additions, -7 deletions)

View changed files

📝 fakestorage/example_test.go (+27 -0)
📝 fakestorage/server.go (+33 -7)

📄 Description

I needed to be able to run a standalone server on a known port in order to do some integration testing, so this PR enables that by adding another constructor: NewServerWithHostPort


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/4 **Author:** [@gracenoah](https://github.com/gracenoah) **Created:** 2/15/2018 **Status:** ✅ Merged **Merged:** 2/15/2018 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `master` ← **Head:** `custom-port` --- ### 📝 Commits (1) - [`6839464`](https://github.com/fsouza/fake-gcs-server/commit/6839464c366fcd39b03eb84eaacb5f3c3e9ecfe0) allow customizing the test server port ### 📊 Changes **2 files changed** (+60 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/example_test.go` (+27 -0) 📝 `fakestorage/server.go` (+33 -7) </details> ### 📄 Description I needed to be able to run a standalone server on a known port in order to do some integration testing, so this PR enables that by adding another constructor: `NewServerWithHostPort` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:09:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#258
No description provided.