From 891c81e631a559d831ba3687bfb48dd4d7af033c Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Thu, 25 Mar 2021 15:53:15 -0400 Subject: [PATCH] test: repo migrations fetch - support windows wanting binaries to end in .exe --- repo/fsrepo/migrations/fetch_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo/fsrepo/migrations/fetch_test.go b/repo/fsrepo/migrations/fetch_test.go index 4b5a48bd9..7d90d7405 100644 --- a/repo/fsrepo/migrations/fetch_test.go +++ b/repo/fsrepo/migrations/fetch_test.go @@ -40,6 +40,7 @@ func createFakeArchive(name string, archZip bool, w io.Writer) { if fileName == "go-ipfs" { fileName = "ipfs" } + fileName = ExeName(fileName) var err error if archZip { @@ -179,7 +180,7 @@ func TestFetchBinary(t *testing.T) { t.Error("expected 'exists' error, got:", err) } - os.Remove(path.Join(tmpDir, "ipfs")) + os.Remove(path.Join(tmpDir, ExeName("ipfs"))) // Check error creating temp download directory err = os.Chmod(tmpDir, 0555)