Skip to content

Commit

Permalink
fix(test): broken unsupported test
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed Nov 2, 2022
1 parent c36ce5e commit 77dc921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autopprof_unsupported_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import (
func TestStart(t *testing.T) {
testCases := []struct {
name string
opt *Option
opt Option
want error
}{
{
name: "unsupported platform",
opt: nil,
opt: Option{},
want: ErrUnsupportedPlatform,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
if err := Start(tc.opt); errors.Is(err, tc.want) {
if err := Start(tc.opt); !errors.Is(err, tc.want) {
t.Errorf("Start() = %v, want %v", err, tc.want)
}
})
Expand Down

0 comments on commit 77dc921

Please sign in to comment.