Skip to content

Commit

Permalink
fix(lint): pass unexpected error to test function correctly
Browse files Browse the repository at this point in the history
Co-authored-by: Diana Doherty <[email protected]>
  • Loading branch information
jayjayjpg and dianadoherty committed Feb 1, 2022
1 parent dd653bd commit 3c7d058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/meroxa/global/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package global

import (
"errors"
"fmt"
"runtime"
"testing"
Expand Down Expand Up @@ -93,7 +94,7 @@ func TestAddError(t *testing.T) {
}

err := "unexpected error"
addError(event, fmt.Errorf("%s", err))
addError(event, errors.New(err))

if v, ok := event["error"]; !ok || v != err {
if !ok {
Expand Down

0 comments on commit 3c7d058

Please sign in to comment.