File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -244,13 +244,13 @@ fmt: tools
244
244
set -e; for CMD in $( CMDS) ; do \
245
245
$(GOVET ) ./cmd/$$ CMD; \
246
246
done
247
- set -e; for dir in $( shell ls -d1 pkg/* ) ; do \
247
+ set -e; for dir in $( shell ls -d1 pkg/* t/ ) ; do \
248
248
$(GOVET ) ./$$ dir; \
249
249
done
250
- gofmt -w -s ./cmd/ ./pkg/
251
- ./tools/gofumpt -w ./cmd/ ./pkg/
252
- ./tools/gci write ./cmd/. ./pkg/. --skip-generated
253
- goimports -w ./cmd/ ./pkg/
250
+ gofmt -w -s ./cmd/ ./pkg/ ./t/
251
+ ./tools/gofumpt -w ./cmd/ ./pkg/ ./t/
252
+ ./tools/gci write ./cmd/. ./pkg/. ./t/. --skip-generated
253
+ goimports -w ./cmd/ ./pkg/ ./t/.
254
254
255
255
versioncheck :
256
256
@[ $$ ( printf ' %s\n' $( GOVERSION) $( MINGOVERSION) | sort | head -n 1 ) = $( MINGOVERSION) ] || { \
Original file line number Diff line number Diff line change @@ -3,12 +3,17 @@ package main
3
3
import (
4
4
"os"
5
5
"testing"
6
+ "time"
6
7
7
8
"github.com/stretchr/testify/assert"
8
9
"github.com/stretchr/testify/require"
9
10
)
10
11
11
- var localINIPath = `C:\Program Files\snclient\snclient_local.ini`
12
+ const (
13
+ localINIPath = `C:\Program Files\snclient\snclient_local.ini`
14
+
15
+ buildMSITimeout = 3 * time .Minute
16
+ )
12
17
13
18
var requiredFiles = []string {
14
19
"snclient.exe" ,
@@ -74,7 +79,8 @@ func TestMSIinstaller(t *testing.T) {
74
79
"-rev" , "101" ,
75
80
"-sha" , "deadbeef" ,
76
81
},
77
- Like : []string {"Windows Installer" , "snclient.wxs" },
82
+ Like : []string {"Windows Installer" , "snclient.wxs" },
83
+ Timeout : buildMSITimeout ,
78
84
})
79
85
80
86
// install update from msi file
You can’t perform that action at this time.
0 commit comments