Skip to content
Snippets Groups Projects
Commit a2a3adcd authored by 邹毅贤's avatar 邹毅贤
Browse files

modify test

parent 68602ee0
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
package config
import (
"github.com/stretchr/testify/assert"
"testing"
)
......@@ -191,10 +192,13 @@ func Test_Export(t *testing.T) {
}
func Test_getRandomPorts(t *testing.T) {
ports := getRandomPorts(3)
size := 3
ports := getRandomPorts(size)
t.Logf("len:%v", len(ports))
for _, port := range ports {
t.Logf("port:%v", port)
}
assert.Equal(t, size, len(ports))
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment