From 598d695f6135e09d8f943c5431a3c7b0acf71a13 Mon Sep 17 00:00:00 2001 From: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:21:03 +0300 Subject: [PATCH] Fix error on test The test case was returning a wrapped error yet it was supposed to return a single error. The wrapped error was just a duplicate. --- ws/adapter_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ws/adapter_test.go b/ws/adapter_test.go index d36a46a55..851ffd421 100644 --- a/ws/adapter_test.go +++ b/ws/adapter_test.go @@ -11,7 +11,6 @@ import ( "github.com/absmach/magistrala" authmocks "github.com/absmach/magistrala/auth/mocks" "github.com/absmach/magistrala/internal/testsutil" - "github.com/absmach/magistrala/pkg/errors" "github.com/absmach/magistrala/pkg/messaging" "github.com/absmach/magistrala/ws" "github.com/absmach/magistrala/ws/mocks" @@ -77,7 +76,7 @@ func TestSubscribe(t *testing.T) { chanID: chanID, subtopic: subTopic, fail: true, - err: errors.Wrap(ws.ErrFailedSubscription, ws.ErrFailedSubscription), + err: ws.ErrFailedSubscription, }, { desc: "subscribe to channel with invalid chanID and invalid thingKey",