Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasen committed Dec 8, 2015
1 parent 4ee091d commit df2a273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestMain(m *testing.M) {
// start listen
os.Setenv("SECRET", string(_secret))
os.Setenv("BACKEND_TIMEOUT", "1")
os.Setenv("MAX_HTTP_HEADER_SIZE", "1024")

go main()

Expand Down Expand Up @@ -251,6 +252,9 @@ func TestProtocolDecrypt(*testing.T) {
panic(err)
}
testProtocol(append(b, '\n'), nil)

// test cached hitted
testProtocol(append(b, '\n'), nil)
}

// TestBinaryProtocolDecrypt
Expand Down

0 comments on commit df2a273

Please sign in to comment.