Skip to content

Commit 7442c09

Browse files
committed
exclude updatetest folder
1 parent d359c2f commit 7442c09

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tasks:
5555
cmds:
5656
- go build ./cmd/arduino-app-cli # needed for e2e tests
5757
- task: generate
58-
- go test ./internal/... ./cmd/... -v -race {{ .CLI_ARGS }}
58+
- go test $(go list ./internal/... ./cmd/... | grep -v internal/e2e/updatetest) -v -race {{ .CLI_ARGS }} # exclude deb package update tests
5959

6060
test:pkg:
6161
desc: Run only tests in the pkg directory

internal/e2e/updatetest/helpers.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ func getAppCliVersion(t *testing.T, containerName string) string {
187187
}
188188
err = json.Unmarshal(output, &version)
189189
require.NoError(t, err)
190-
//TODO to enable after 0.6.7
191-
//require.Equal(t, version.Version, version.DaemonVersion, "client and daemon versions should match")
190+
// TODO to enable after 0.6.7
191+
// require.Equal(t, version.Version, version.DaemonVersion, "client and daemon versions should match")
192192
require.NotEmpty(t, version.Version)
193193
return version.Version
194194

@@ -299,10 +299,8 @@ type Event struct {
299299
Data []byte // json
300300
}
301301

302-
// waitForPort waits until a TCP port is open or fails after timeout.
303-
func waitForPort(t *testing.T, host string, timeout time.Duration) {
302+
func waitForPort(t *testing.T, host string, timeout time.Duration) { // nolint:unparam
304303
t.Helper()
305-
306304
deadline := time.Now().Add(timeout)
307305
for time.Now().Before(deadline) {
308306
conn, err := net.DialTimeout("tcp", host, 500*time.Millisecond)

0 commit comments

Comments
 (0)