Explorar o código

build: Tests should run with Go 1.20 on Windows (#8924)

Tests should run with Go 1.20 on Windows
Jakob Borg %!s(int64=2) %!d(string=hai) anos
pai
achega
ae176ea9cd
Modificáronse 2 ficheiros con 0 adicións e 13 borrados
  1. 0 4
      .github/workflows/build-syncthing.yaml
  2. 0 9
      lib/fs/basicfs_windows_test.go

+ 0 - 4
.github/workflows/build-syncthing.yaml

@@ -67,10 +67,6 @@ jobs:
           go run build.go
 
       - name: Test
-        # Our Windows tests currently don't work on Go 1.20
-        # https://github.com/syncthing/syncthing/issues/8779
-        # https://github.com/syncthing/syncthing/issues/8778
-        if: "!(matrix.go == '1.20' && matrix.runner == 'windows-latest')"
         run: |
           go run build.go test
 

+ 0 - 9
lib/fs/basicfs_windows_test.go

@@ -12,7 +12,6 @@ package fs
 import (
 	"os"
 	"path/filepath"
-	"runtime"
 	"strings"
 	"syscall"
 	"testing"
@@ -37,14 +36,6 @@ func TestWindowsPaths(t *testing.T) {
 		{`\\192.0.2.22\network\share`, `\\192.0.2.22\network\share`, `\\192.0.2.22\network\share`},
 	}
 
-	if runtime.Version() >= "go1.20" {
-		testCases = append(testCases,
-			testCase{`\\.\e:`, `\\.\e:\`, `e:\`},
-			testCase{`\\.\e:\`, `\\.\e:\`, `e:\`},
-			testCase{`\\.\e:\\`, `\\.\e:\`, `e:\`},
-		)
-	}
-
 	for i, testCase := range testCases {
 		fs := newBasicFilesystem(testCase.input)
 		if fs.root != testCase.expectedRoot {