HTTP load generator, ApacheBench (ab) replacement
Go
Fix the build, remove test that require boomer to export the non-consumable results.
Burcu Doganf173312eb491
diff --git a/boomer/run_test.go b/boomer/run_test.goindex 23bdd5e..acd44d1 100644--- a/boomer/run_test.go+++ b/boomer/run_test.go@@ -141,46 +141,3 @@ func TestBody(t *testing.T) {t.Errorf("Expected to boom 10 times, found %v", count)}}--func TestContentLengthIfExists(t *testing.T) {- handler := func(w http.ResponseWriter, r *http.Request) {- w.Header().Set("Content-Length", "20")- }- server := httptest.NewServer(http.HandlerFunc(handler))- defer server.Close()-- boomer := &Boomer{- Req: &ReqOpts{- Method: "GET",- Url: server.URL,- },- N: 10,- C: 1,- }- boomer.Run()-- if boomer.rpt.sizeTotal != 200 {- t.Errorf("Expected Total Data Received 200 bytes, found %v", boomer.rpt.sizeTotal)- }-}--func TestContentLengthIfDontExists(t *testing.T) {- handler := func(w http.ResponseWriter, r *http.Request) {- }- server := httptest.NewServer(http.HandlerFunc(handler))- defer server.Close()-- boomer := &Boomer{- Req: &ReqOpts{- Method: "GET",- Url: server.URL,- },- N: 10,- C: 1,- }- boomer.Run()-- if boomer.rpt.sizeTotal != 0 {- t.Errorf("Expected Total Data Received 200 bytes, found %v", boomer.rpt.sizeTotal)- }-}