From 81bfbb2072d8865e3ba4e2f29eca187812f50cfa Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Sat, 20 Jul 2024 08:51:14 +0200 Subject: [PATCH] fix: redirect to login (#1082) --- Makefile | 2 +- reaction/action/webhook/webhook_test.go | 3 + ui/src/components/sidebar/UserDropDown.vue | 116 +++++++++++---------- 3 files changed, 63 insertions(+), 58 deletions(-) diff --git a/Makefile b/Makefile index a2d2038..3881103 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ test: .PHONY: test-coverage test-coverage: @echo "Testing with coverage..." - go test -coverpkg=./... -coverprofile=coverage.out ./... + go test -coverpkg=./... -coverprofile=coverage.out -count 1 ./... go tool cover -func=coverage.out go tool cover -html=coverage.out diff --git a/reaction/action/webhook/webhook_test.go b/reaction/action/webhook/webhook_test.go index e831f3f..eea1087 100644 --- a/reaction/action/webhook/webhook_test.go +++ b/reaction/action/webhook/webhook_test.go @@ -5,6 +5,7 @@ import ( "encoding/json" "net/http" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -19,6 +20,8 @@ func TestWebhook_Run(t *testing.T) { go http.ListenAndServe("127.0.0.1:12347", server) //nolint:gosec,errcheck + time.Sleep(1 * time.Second) + type fields struct { Headers map[string]string URL string diff --git a/ui/src/components/sidebar/UserDropDown.vue b/ui/src/components/sidebar/UserDropDown.vue index f16b327..b8913e7 100644 --- a/ui/src/components/sidebar/UserDropDown.vue +++ b/ui/src/components/sidebar/UserDropDown.vue @@ -1,5 +1,4 @@