Skip to content

Commit

Permalink
tests: Make sure we try tests on free ports. (minio#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Aug 10, 2016
1 parent 758aa21 commit 8274ac2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions checkport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8274ac2

Please sign in to comment.