Skip to content

Commit

Permalink
request_test: add another missing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 25, 2024
1 parent 0a0e6f0 commit 2b06c64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ func teardown() {
}

func TestMain(m *testing.M) {
setup()
flag.Parse()

setup()
exitCode := m.Run()

teardown()

os.Exit(exitCode)
Expand Down Expand Up @@ -148,8 +148,9 @@ func TestParseResponse(t *testing.T) {
want int
}{
{RawResponse("ok"), 1},
{RawResponse("ok\r\nok"), 2},
{RawResponse(" ok "), 1},
{RawResponse("ok\r\nok"), 2},
{RawResponse(" \r\nok\r\n \r\n ok"), 2},
{RawResponse(strings.Repeat("ok\r\n", 5)), 5},
{RawResponse(strings.Repeat("ok\r\n\r\n", 5)), 5},
{RawResponse(strings.Repeat("ok\r\n\n", 10)), 10},
Expand Down

0 comments on commit 2b06c64

Please sign in to comment.