parent
69169c158d
commit
4183386b98
@ -1,11 +1,12 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerIP(t *testing.T) {
|
func TestServerIP(t *testing.T) {
|
||||||
if ServerIP == "" {
|
if net.ParseIP(ServerIP) == nil {
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue