Skip to content

Commit

Permalink
Fix tests on GitHub Actions (#4479)
Browse files Browse the repository at this point in the history
  • Loading branch information
nono authored Oct 24, 2024
2 parents 232c522 + aafd9fa commit 05cdffd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
cache: true

- name: Run tests
run: go test -p 1 -timeout 5m
run: go test -p 1 -timeout 5m ./...
5 changes: 2 additions & 3 deletions model/intent/intents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,14 @@ func TestIntents(t *testing.T) {
err := intent.FillAvailableWebapps(ins)
assert.NoError(t, err)

// Should have Home and Collect
assert.Equal(t, 2, len(intent.AvailableApps))
// Should have Home
assert.Equal(t, 1, len(intent.AvailableApps))

res := map[string]interface{}{}
for _, v := range intent.AvailableApps {
res[v.Slug] = struct{}{}
}

assert.Contains(t, res, "home")
assert.Contains(t, res, "collect")
})
}
2 changes: 1 addition & 1 deletion web/files/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,7 @@ func TestFiles(t *testing.T) {
})

t.Run("DeprecatePreviewAndIcon", func(t *testing.T) {
testutils.TODO(t, "2024-05-01", "Remove the deprecated preview and icon for PDF files")
testutils.TODO(t, "2025-05-01", "Remove the deprecated preview and icon for PDF files")
})
}

Expand Down

0 comments on commit 05cdffd

Please sign in to comment.