From 32d0557a28c5482718ba296e2d6f0fc1860713ef Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Sat, 11 Jul 2015 19:07:35 +0500 Subject: [PATCH] Reduce test file size --- input_raw_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input_raw_test.go b/input_raw_test.go index a45e5e8..2f8652b 100644 --- a/input_raw_test.go +++ b/input_raw_test.go @@ -158,7 +158,7 @@ func TestInputRAWLargePayload(t *testing.T) { quit := make(chan int) // Generate 200kb file - dd := exec.Command("dd", "if=/dev/urandom", "of=/tmp/large", "bs=1KB", "count=200") + dd := exec.Command("dd", "if=/dev/urandom", "of=/tmp/large", "bs=1KB", "count=100") err := dd.Run() if err != nil { log.Fatal("dd error:", err) @@ -169,7 +169,7 @@ func TestInputRAWLargePayload(t *testing.T) { defer req.Body.Close() body, _ := ioutil.ReadAll(req.Body) - if len(body) != 200*1000 { + if len(body) != 100*1000 { t.Error("File size should be 1mb:", len(body)) } @@ -185,8 +185,8 @@ func TestInputRAWLargePayload(t *testing.T) { n, _ := req.Body.Read(buf) body := buf[0:n] - if len(body) != 200*1000 { - t.Error("File size should be 200000 bytes:", len(body)) + if len(body) != 100*1000 { + t.Error("File size should be 100000 bytes:", len(body)) } wg.Done()