[ARVADOS] updated: a007e4eb0b9f00bcd2203261bbfba4aec7aa59bc

git at public.curoverse.com git at public.curoverse.com
Thu May 14 22:07:35 EDT 2015


Summary of changes:
 services/keepstore/bufferpool_test.go |  8 +++++---
 services/keepstore/handler_test.go    | 18 +++++++++---------
 2 files changed, 14 insertions(+), 12 deletions(-)

       via  a007e4eb0b9f00bcd2203261bbfba4aec7aa59bc (commit)
      from  92a203c4cf8713a7e28e3d18117d167878dbf804 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a007e4eb0b9f00bcd2203261bbfba4aec7aa59bc
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu May 14 22:10:02 2015 -0400

    5748: gofmt fixes.

diff --git a/services/keepstore/bufferpool_test.go b/services/keepstore/bufferpool_test.go
index b2f63b1..718e2ca 100644
--- a/services/keepstore/bufferpool_test.go
+++ b/services/keepstore/bufferpool_test.go
@@ -10,8 +10,10 @@ import (
 func TestBufferPool(t *testing.T) {
 	TestingT(t)
 }
+
 var _ = Suite(&BufferPoolSuite{})
-type BufferPoolSuite struct {}
+
+type BufferPoolSuite struct{}
 
 // Initialize a default-sized buffer pool for the benefit of test
 // suites that don't run main().
@@ -50,7 +52,7 @@ func testBufferPoolRace(c *C, bufs *bufferPool, unused []byte, expectWin string)
 		race <- "Get"
 	}()
 	go func() {
-		time.Sleep(10*time.Millisecond)
+		time.Sleep(10 * time.Millisecond)
 		bufs.Put(unused)
 		race <- "Put"
 	}()
@@ -81,5 +83,5 @@ func (s *BufferPoolSuite) TestBufferPoolReuse(c *C) {
 		}
 		last = next
 	}
-	c.Check(reuses > allocs * 95/100, Equals, true)
+	c.Check(reuses > allocs*95/100, Equals, true)
 }
diff --git a/services/keepstore/handler_test.go b/services/keepstore/handler_test.go
index 5c367ae..5bd14be 100644
--- a/services/keepstore/handler_test.go
+++ b/services/keepstore/handler_test.go
@@ -821,10 +821,10 @@ func TestPutHandlerNoBufferleak(t *testing.T) {
 			unsigned_locator := "/" + TEST_HASH
 			response := IssueRequest(
 				&RequestTester{
-				method:       "PUT",
-				uri:          unsigned_locator,
-				request_body: TEST_BLOCK,
-			})
+					method:       "PUT",
+					uri:          unsigned_locator,
+					request_body: TEST_BLOCK,
+				})
 			ExpectStatusCode(t,
 				"TestPutHandlerBufferleak", http.StatusOK, response)
 			ExpectBody(t,
@@ -834,7 +834,7 @@ func TestPutHandlerNoBufferleak(t *testing.T) {
 		ok <- true
 	}()
 	select {
-	case <-time.After(20*time.Second):
+	case <-time.After(20 * time.Second):
 		// If the buffer pool leaks, the test goroutine hangs.
 		t.Fatal("test did not finish, assuming pool leaked")
 	case <-ok:
@@ -863,9 +863,9 @@ func TestGetHandlerNoBufferleak(t *testing.T) {
 			unsigned_locator := "/" + TEST_HASH
 			response := IssueRequest(
 				&RequestTester{
-				method: "GET",
-				uri:    unsigned_locator,
-			})
+					method: "GET",
+					uri:    unsigned_locator,
+				})
 			ExpectStatusCode(t,
 				"Unauthenticated request, unsigned locator", http.StatusOK, response)
 			ExpectBody(t,
@@ -876,7 +876,7 @@ func TestGetHandlerNoBufferleak(t *testing.T) {
 		ok <- true
 	}()
 	select {
-	case <-time.After(20*time.Second):
+	case <-time.After(20 * time.Second):
 		// If the buffer pool leaks, the test goroutine hangs.
 		t.Fatal("test did not finish, assuming pool leaked")
 	case <-ok:

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list