From d52c26ee1614eb0e11399f3722c5bac8448665c2 Mon Sep 17 00:00:00 2001 From: Vittorio Parrella Date: Sat, 5 Oct 2024 16:08:52 +0200 Subject: [PATCH] cleanup: fixed tests --- .github/workflows/release.yml | 2 +- service/service_test.go | 1 + workers/client/client_test.go | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a66e22..85ae491 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -477,7 +477,7 @@ jobs: cd ${{ github.workspace }} 7z a -tzip qpep_windows_b${{ github.run_id }}.zip ${{ github.workspace }}/installer.msi 7z a -tzip qpep_linux_b${{ github.run_id }}.zip ${{ github.workspace }}/qpep - 7z a -tzip qpep_macos_b${{ github.run_id }}.zip ${{ github.workspace }}/*.pkg + 7z a -tzip qpep_macos_b${{ github.run_id }}.zip ${{ github.workspace }}/*.pkg 7z a -tzip qpep_user_manual_b${{ github.run_id }}.zip ${{ github.workspace }}/user_manual.pdf - name: Create Release diff --git a/service/service_test.go b/service/service_test.go index 7f16c28..5fb6e0b 100644 --- a/service/service_test.go +++ b/service/service_test.go @@ -82,6 +82,7 @@ func (s *ServiceSuite) TestServiceMain_Client() { }, nil }) monkey.Patch(client.RunClient, func(context.Context, context.CancelFunc) {}) + monkey.Patch(api.RunServer, func(context.Context, context.CancelFunc, bool) {}) monkey.Patch(gateway.SetSystemProxy, func(bool) {}) os.Args = append(os.Args[:1], "--client") diff --git a/workers/client/client_test.go b/workers/client/client_test.go index de15240..850a7c8 100644 --- a/workers/client/client_test.go +++ b/workers/client/client_test.go @@ -20,8 +20,6 @@ import ( "github.com/stretchr/testify/suite" "math/big" "net" - "net/url" - "runtime" "sync" "testing" "time"