change for the context keys

This commit is contained in:
MohitKatare-protean
2025-04-03 12:35:13 +05:30
parent a2c27b4fbf
commit 0ee2010338
3 changed files with 12 additions and 7 deletions

View File

@@ -6,6 +6,8 @@ import (
"net/http"
"net/http/httptest"
"testing"
"github.com/beckn/beckn-onix/pkg/model"
)
func TestNewUUIDSetterSuccessCases(t *testing.T) {
@@ -67,7 +69,7 @@ func TestNewUUIDSetterSuccessCases(t *testing.T) {
ctx := r.Context()
w.WriteHeader(http.StatusOK)
subID, ok := ctx.Value(subscriberIDKey).(string)
subID, ok := ctx.Value(model.SubscriberIDKey).(string)
if !ok {
http.Error(w, "Subscriber ID not found", http.StatusInternalServerError)
return