Skip to content

Commit

Permalink
fix: flaky jmeterd test (#4521)
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanzele authored Oct 30, 2023
1 parent f3d6fa0 commit fd0d298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/executor/jmeterd/pkg/slaves/meta_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package slaves

import (
"strings"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -60,7 +61,7 @@ func TestSlaveMeta_ToIPString(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ipString := tt.meta.ToIPString()
assert.Equal(t, tt.expected, ipString)
assert.ElementsMatch(t, strings.Split(tt.expected, ","), strings.Split(ipString, ","))
})
}
}

0 comments on commit fd0d298

Please sign in to comment.