Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lpusok committed May 15, 2024
1 parent 553bb30 commit d78cc9b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions command/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ Error: second error`,
t.Errorf("command.Run() error = %v, wantErr %v", gotErrMsg, tt.wantErr)
return
}
gotFormattedMsg := errorutil.FormattedError(err)
if gotFormattedMsg != tt.wantErr {
t.Errorf("FormattedError() error = \n%v\n, wantErr \n%v\n", gotFormattedMsg, tt.wantErr)
}
})
}
}
Expand Down Expand Up @@ -255,6 +259,10 @@ Error: fourth error`,
t.Errorf("command.Run() error = %v, wantErr %v", gotErrMsg, tt.wantErr)
return
}
gotFormattedMsg := errorutil.FormattedError(err)
if gotFormattedMsg != tt.wantErr {
t.Errorf("FormattedError() error = \n%v\n, wantErr \n%v\n", gotFormattedMsg, tt.wantErr)
}
})
}
}
Expand Down

0 comments on commit d78cc9b

Please sign in to comment.