Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Fix error on test
Browse files Browse the repository at this point in the history
The test case was returning a wrapped error yet it was
supposed to return a single error. The wrapped error
was just a duplicate.
  • Loading branch information
rodneyosodo committed Nov 17, 2023
1 parent a0c40ba commit ce2d16b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ws/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ce2d16b

Please sign in to comment.