mirror of
https://github.com/hanzoai/porto.git
synced 2026-11-03 18:08:27 +00:00
16 lines
427 B
Go
16 lines
427 B
Go
package testutils_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/effective-security/porto/tests/testutils"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCreateBindAddrInvalidHost(t *testing.T) {
|
|
t.Parallel()
|
|
// An embedded port makes the host invalid without requiring DNS or a
|
|
// machine-dependent port conflict. The helper promises to panic on failure.
|
|
assert.Panics(t, func() { testutils.CreateBindAddr("127.0.0.1:1") })
|
|
}
|