Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests on GitHub Actions #4479

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading