Files
open-im-server/internal/utils/get_server_ip_test.go
T

14 lines
157 B
Go
Raw Normal View History

2021-10-21 11:30:48 +08:00
package utils
import (
"Open_IM/pkg/utils"
2021-10-21 11:30:48 +08:00
"net"
"testing"
)
func TestServerIP(t *testing.T) {
if net.ParseIP(utils.ServerIP) == nil {
2021-10-21 11:30:48 +08:00
t.Fail()
}
}