Skip to content

Commit

Permalink
Revert "Try using a higher port for windows"
Browse files Browse the repository at this point in the history
This reverts commit e329b33.
  • Loading branch information
swi-jared committed Aug 1, 2024
1 parent e329b33 commit 1ec3908
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/reporter/reporter_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// this is a reasonable compromise.
// -- @swi-jared

///go:build !windows
//go:build !windows

package reporter

Expand Down
12 changes: 6 additions & 6 deletions internal/reporter/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//See note in `reporter_grpc_test.go`
///go:build !windows
// See note in `reporter_grpc_test.go`
//go:build !windows

package reporter

Expand Down Expand Up @@ -84,7 +84,7 @@ func TestGRPCReporter(t *testing.T) {
// start test gRPC server
setEnv("SW_APM_DEBUG_LEVEL", "debug")
config.Load()
addr := "localhost:10023"
addr := "localhost:4567"
server := StartTestGRPCServer(t, addr)
time.Sleep(100 * time.Millisecond)

Expand Down Expand Up @@ -171,7 +171,7 @@ func TestGRPCReporter(t *testing.T) {
func TestShutdownGRPCReporter(t *testing.T) {
// start test gRPC server
setEnv("SW_APM_DEBUG_LEVEL", "debug")
addr := "localhost:10023"
addr := "localhost:4567"
server := StartTestGRPCServer(t, addr)
time.Sleep(100 * time.Millisecond)

Expand Down Expand Up @@ -227,7 +227,7 @@ func TestInvalidKey(t *testing.T) {
setEnv("SW_APM_DEBUG_LEVEL", "debug")
oldKey := os.Getenv("SW_APM_SERVICE_KEY")
setEnv("SW_APM_SERVICE_KEY", invalidKey)
addr := "localhost:10023"
addr := "localhost:4567"
setEnv("SW_APM_COLLECTOR", addr)
setEnv("SW_APM_TRUSTEDPATH", testCertFile)

Expand Down Expand Up @@ -475,7 +475,7 @@ func TestCollectMetricsNextInterval(t *testing.T) {

// testProxy performs tests of http/https proxy.
func testProxy(t *testing.T, proxyUrl string) {
addr := "localhost:10023"
addr := "localhost:4567"

setEnv("SW_APM_DEBUG_LEVEL", "debug")
setEnv("SW_APM_COLLECTOR", addr)
Expand Down

0 comments on commit 1ec3908

Please sign in to comment.