Skip to content

Commit

Permalink
!= => errors.Is
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmidi authored and iSchluff committed Dec 26, 2024
1 parent f27dc04 commit 5d42f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stream/streamid_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package stream

import (
"errors"
"fmt"
"testing"
)
Expand Down Expand Up @@ -110,7 +111,7 @@ func TestNewStreamID(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
id, err := NewStreamID(tt.argName, tt.argPassword, tt.argMode)
if err != tt.wantErr {
if !errors.Is(err, tt.wantErr) {
t.Errorf("ParseStreamID() error = %v, wantErr %v", err, tt.wantErr)
}
if err != nil {
Expand Down

0 comments on commit 5d42f76

Please sign in to comment.