# x/net: fix tcp tests for openbsd and add missing \`fmt\` import · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c75ae8b66d57d9e7c195121e1d8d8ff5ca98e73d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c75ae8b66d57d9e7c195121e1d8d8ff5ca98e73d

Requested commit: c75ae8b66d57d9e7c195121e1d8d8ff5ca98e73d

Commit: c75ae8b66d57d9e7c195121e1d8d8ff5ca98e73d

Tree: 6edc6ae92d6471fd26c625af568a87078fb81f54

Author: lithdew

Committer: lithdew

## Message

```
x/net: fix tcp tests for openbsd and add missing `fmt` import

On OpenBSD, connecting to a newly-allocated port on an unspecified IPv4
host address causes EINVAL. This was found by @mikdusan when running TCP
tests on OpenBSD.

This commit fixes TCP tests on OpenBSD by having all tests that allocate
a new host-port pair to have the host IPv4/IPv6 address point to the
host's loopback adapter (on localhost).

```

## Parents

- [785a6c1aa9a7979a962db9d741a53897c423cb92](https://git.cafe/gitcafe/zig/commit/785a6c1aa9a7979a962db9d741a53897c423cb92?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c75ae8b66d57d9e7c195121e1d8d8ff5ca98e73d?format=markdown)
