Skip to content

Commit

Permalink
Add comment about th UDS path length to main_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
peterguy committed Oct 24, 2024
1 parent 1e48e10 commit b0851f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/src/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
)

func TestReadConfig(t *testing.T) {
// UNIX Domain Sockets have a max path length: 104 on BSD/macOS, 108 on Linux.
// Including a prefix and suffix was causing the path to be too long
// with t.TempDir() (os.TempDir() is a shorter path) so we don't use them.
socketPath, err := api.CreateTempFile(t.TempDir(), "", "")
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit b0851f3

Please sign in to comment.