From 0eb7ea6f666688ca281aa47bca108c4661474e25 Mon Sep 17 00:00:00 2001
From: kenriortega <kenriortega@gmail.com>
Date: Sat, 13 Nov 2021 20:43:28 -0500
Subject: [PATCH] ref: add ctx on getclient badgerdb method

---
 internal/proxy/services/proxy_test.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/internal/proxy/services/proxy_test.go b/internal/proxy/services/proxy_test.go
index c954291..b378efb 100644
--- a/internal/proxy/services/proxy_test.go
+++ b/internal/proxy/services/proxy_test.go
@@ -1,6 +1,8 @@
 package proxy
 
 import (
+	"context"
+
 	domain "github.com/kenriortega/ngonx/internal/proxy/domain"
 	"github.com/kenriortega/ngonx/pkg/badgerdb"
 
@@ -10,7 +12,7 @@ import (
 var proxyRepository domain.ProxyRepository
 
 func Test_SaveSecretKEY(t *testing.T) {
-	clientBadger := badgerdb.GetBadgerDB(false)
+	clientBadger := badgerdb.GetBadgerDB(context.Background(), false)
 	proxyRepository = domain.NewProxyRepository(clientBadger)
 	err := proxyRepository.SaveKEY("badger", "key", "apikey")
 	if err != nil {
@@ -19,7 +21,7 @@ func Test_SaveSecretKEY(t *testing.T) {
 }
 
 func Test_GetKEY(t *testing.T) {
-	clientBadger := badgerdb.GetBadgerDB(false)
+	clientBadger := badgerdb.GetBadgerDB(context.Background(), false)
 	proxyRepository = domain.NewProxyRepository(clientBadger)
 	result, err := proxyRepository.GetKEY("badger", "key")
 	if err != nil {