Skip to content

Commit

Permalink
tests: add details when test fails on malformed info (#9042)
Browse files Browse the repository at this point in the history
  • Loading branch information
oranagra committed Jun 3, 2021
1 parent 3fbdbf5 commit b512dfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/redis-cli.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ start_server {tags {"cli"}} {
test_interactive_cli "INFO response should be printed raw" {
set lines [split [run_command $fd info] "\n"]
foreach line $lines {
assert [regexp {^$|^#|^[^#:]+:} $line]
if {![regexp {^$|^#|^[^#:]+:} $line]} {
fail "Malformed info line: $line"
}
}
}

Expand Down

0 comments on commit b512dfe

Please sign in to comment.