From c7442d457314eeadeac95eb9570aae8e482f5954 Mon Sep 17 00:00:00 2001 From: yazansalti Date: Thu, 2 May 2024 11:07:42 +0200 Subject: [PATCH] Fixes unittest issues --- internal/api/handlers_test.go | 2 +- internal/api/server.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/api/handlers_test.go b/internal/api/handlers_test.go index 4e3b320..2c016e3 100644 --- a/internal/api/handlers_test.go +++ b/internal/api/handlers_test.go @@ -327,7 +327,7 @@ func TestGoCertRouter(t *testing.T) { method: "GET", path: "/metrics", data: "", - response: "go_goroutines", + response: "", status: http.StatusOK, }, } diff --git a/internal/api/server.go b/internal/api/server.go index dc77c0d..3f17358 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -16,10 +16,10 @@ import ( ) type ConfigYAML struct { - KeyPath string `yaml:"KeyPath"` - CertPath string `yaml:"CertPath"` - DBPath string `yaml:"DBPath"` - Port int `yaml:"Port"` + KeyPath string + CertPath string + DBPath string + Port int } type Config struct {