浏览代码

lib/upgrade: Tests should pass on darwin-386

Jakob Borg 7 年之前
父节点
当前提交
27d675a793
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      lib/upgrade/upgrade_test.go

+ 3 - 2
lib/upgrade/upgrade_test.go

@@ -9,6 +9,7 @@
 package upgrade
 
 import (
+	"fmt"
 	"runtime"
 	"strings"
 	"testing"
@@ -124,8 +125,8 @@ func TestSelectedReleaseMacOS(t *testing.T) {
 
 	// The alternatives that we expect should work
 	assetNames := []string{
-		"syncthing-macos-amd64-v0.14.47.tar.gz",
-		"syncthing-macosx-amd64-v0.14.47.tar.gz",
+		fmt.Sprintf("syncthing-macos-%s-v0.14.47.tar.gz", runtime.GOARCH),
+		fmt.Sprintf("syncthing-macosx-%s-v0.14.47.tar.gz", runtime.GOARCH),
 	}
 
 	for _, assetName := range assetNames {