Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evlekht committed Oct 7, 2024
1 parent 7ee1012 commit 41b87d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions internal/messaging/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const cashInTxIssueTimeout = 10 * time.Second
var (
_ Processor = (*processor)(nil)

ErrUserIDNotSet = errors.New("user id not set")
ErrUnknownMessageCategory = errors.New("unknown message category")
ErrOnlyRequestMessagesAllowed = errors.New("only request messages allowed")
ErrUnsupportedService = errors.New("unsupported service")
Expand Down Expand Up @@ -132,9 +131,6 @@ func (p *processor) Start(ctx context.Context) {
}

func (p *processor) ProcessInbound(msg *types.Message) error {
if p.botUserID == "" {
return ErrUserIDNotSet
}
if msg.Sender != p.botUserID { // outbound messages = messages sent by own ext system
switch msg.Type.Category() {
case types.Request:
Expand Down
4 changes: 0 additions & 4 deletions internal/messaging/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ func TestProcessInbound(t *testing.T) {
err error
assert func(*testing.T, *processor)
}{
"err: user id not set": {
fields: fields{},
err: ErrUserIDNotSet,
},
"err: invalid message type": {
fields: fields{},
args: args{
Expand Down

0 comments on commit 41b87d6

Please sign in to comment.