summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDenton Gentry <dgentry@tailscale.com>2023-04-04 08:21:15 -0700
committerDenton Gentry <dgentry@tailscale.com>2023-04-04 08:21:15 -0700
commit765b51964306e9331943a3fcfca6e7fab5e4142c (patch)
treef1aa7194251a031f6fd0d92a62a6cca0bf55fbd1
parent6d5c3c16377dda0dc932850297e013b8335689a5 (diff)
downloadtailscale-dgentry/atomicfile.tar.xz
tailscale-dgentry/atomicfile.zip
atomicfile: only run test on Linux.dgentry/atomicfile
macOS doesn't like the test, in the setup where it creates a unix-domain socket: ``` atomicfile_test.go:27: listen unix /var/folders/_2/42v283xx1xgbjdbyvhlm13hc0000gp/T/TestDoesNotOverwriteIrregularFiles1507752327/001/special: bind: invalid argument ``` I think at this point we should assume the socket as written in the test only works on Linux. Updates #7658 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
-rw-r--r--atomicfile/atomicfile_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/atomicfile/atomicfile_test.go b/atomicfile/atomicfile_test.go
index b52e79c2b..6f0f47531 100644
--- a/atomicfile/atomicfile_test.go
+++ b/atomicfile/atomicfile_test.go
@@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
-//go:build !js && !windows
+//go:build linux
package atomicfile