Skip to content

Commit

Permalink
Fixed lint error. 🎳
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbeutler committed Feb 20, 2025
1 parent 168ff0a commit e0166c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,12 @@ func TestHTTPCmd(t *testing.T) {
logger.NewLogger()
defer logger.Sync()

httpCmd.Flags().Set("port", "38888")
httpCmd.Flags().Set("host", "127.0.0.1")
if httpCmd.Flags().Set("port", "38888") != nil {
t.Fatalf("failed to set port flag")
}
if httpCmd.Flags().Set("host", "127.0.0.1") != nil {
t.Fatalf("failed to set host flag")
}

go func() {
// call the command handler function
Expand Down

0 comments on commit e0166c6

Please sign in to comment.