1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00
Files
starter/port_checker/port_checker_test.go
2023-12-26 16:42:53 +03:00

25 lines
351 B
Go

package port_checker
import (
"testing"
"time"
)
func TestCheckPort(t *testing.T) {
IP := "10.1.9.151"
Port := "26500"
TimeStart := time.Now()
err := CheckPort_err(IP, Port)
t.Log("Прошло время: ", time.Since(TimeStart))
if err != nil {
t.Error("TestCheckPort() error: ", err)
} else {
t.Log("TestCheckPort() OK.")
}
}