From 765b51964306e9331943a3fcfca6e7fab5e4142c Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Tue, 4 Apr 2023 08:21:15 -0700 Subject: [PATCH] atomicfile: only run test on Linux. 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 --- atomicfile/atomicfile_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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