Skip to content

Two blank lines precede every Error: line #100

Description

@korya

Problem

Two consecutive blank lines precede every Error: line. Single blank lines separate every other section.

Reproduction

$ http-assert --assert-ok http://127.0.0.1:8099/500 2>&1 | sed -n l
[.]·HTTP/1.1·GET·http://127.0.0.1:8099/500$
[:]·HTTP/1.1·500·Internal·Server·Error$
[-]·FAILED·535.417\u{b5}s$
$
$
Error:·1·assertions·failed:$
-·ok:·expected·OK,·got·500·("500·Internal·Server·Error")$
$
FAILED:·GET·http://127.0.0.1:8099/500·(HTTP/1.1)$

Suggested fix

Emit one. Likely a trailing newline on the verdict line meeting a leading newline on the error block.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions