package main import "testing" var ( addr string = "minecraft.0cd.xyz" //port int = 25565 port int = 38457 ver uint64 = 751 ) func TestConnection(t *testing.T) { if err := conn(addr, port, ver); err != nil { t.Error(err) return } }