From aafd9fa563bdd6105c797d5023a1532e47a4b5b6 Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Thu, 24 Oct 2024 17:02:29 +0200 Subject: [PATCH] Fix tests on GitHub Actions --- .github/workflows/go-tests.yml | 2 +- model/intent/intents_test.go | 5 ++--- web/files/files_test.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 754e90191e8..54f24e7c8d8 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -64,4 +64,4 @@ jobs: cache: true - name: Run tests - run: go test -p 1 -timeout 5m + run: go test -p 1 -timeout 5m ./... diff --git a/model/intent/intents_test.go b/model/intent/intents_test.go index c9f18609dd5..d01998c1905 100644 --- a/model/intent/intents_test.go +++ b/model/intent/intents_test.go @@ -141,8 +141,8 @@ 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 { @@ -150,6 +150,5 @@ func TestIntents(t *testing.T) { } assert.Contains(t, res, "home") - assert.Contains(t, res, "collect") }) } diff --git a/web/files/files_test.go b/web/files/files_test.go index a741b73097c..c688feb0a5c 100644 --- a/web/files/files_test.go +++ b/web/files/files_test.go @@ -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") }) }