tests: Make sure we try tests on free ports. (#2402)

Fixes #2376
master
Harshavardhana 8 years ago committed by GitHub
parent 758aa21b9c
commit 8274ac2e5a
  1. 5
      checkport_test.go

@ -23,12 +23,13 @@ import (
"testing"
)
// Tests for port availability logic written for server startup sequence.
func TestCheckPortAvailability(t *testing.T) {
tests := []struct {
port int
}{
{9000},
{10000},
{getFreePort()},
{getFreePort()},
}
for _, test := range tests {
// This test should pass if the ports are available

Loading…
Cancel
Save