mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
Avoiding Windows runners file locking issue
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package cli
|
package cli
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -185,6 +186,10 @@ func Test_shouldUpgrade(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_selfUpgradeCheck(t *testing.T) {
|
func Test_selfUpgradeCheck(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("skipped due to Windows file locking issue on Github Action runners")
|
||||||
|
}
|
||||||
|
|
||||||
// Helper function to create a version
|
// Helper function to create a version
|
||||||
makeVersion := func(v string) *semver.Version {
|
makeVersion := func(v string) *semver.Version {
|
||||||
ver, err := semver.NewVersion(v)
|
ver, err := semver.NewVersion(v)
|
||||||
@@ -233,6 +238,10 @@ func Test_selfUpgradeCheck(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_performUpgrade(t *testing.T) {
|
func Test_performUpgrade(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("skipped due to Windows file locking issue on Github Action runners")
|
||||||
|
}
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
versionTarget string
|
versionTarget string
|
||||||
|
|||||||
Reference in New Issue
Block a user