[VOL-5486] Upgrade library versions
Change-Id: I8b4e88699e03f44ee13e467867f45ae3f0a63c4b
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/pkg/stats/promserver_test.go b/pkg/stats/promserver_test.go
index 6db4dd0..cdb385d 100644
--- a/pkg/stats/promserver_test.go
+++ b/pkg/stats/promserver_test.go
@@ -23,6 +23,7 @@
"testing"
"time"
+ "github.com/phayes/freeport"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -32,7 +33,9 @@
serverCtx, serverCancel := context.WithCancel(context.Background())
defer serverCancel()
- testPort := 34201
+ // Get a free port to avoid conflicts
+ testPort, err := freeport.GetFreePort()
+ require.NoError(t, err)
StatsServer.Start(serverCtx, testPort, VCore)