projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6094: Consider arvados_sdk_version (not just script_version) when
[arvados.git]
/
services
/
keepstore
/
handler_test.go
diff --git
a/services/keepstore/handler_test.go
b/services/keepstore/handler_test.go
index 5c367ae916cb148bbf18f6f5c652df68acab2dce..5bd14be3499e123c648a6f97749a911d77ae5dd8 100644
(file)
--- 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{
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,
ExpectStatusCode(t,
"TestPutHandlerBufferleak", http.StatusOK, response)
ExpectBody(t,
@@
-834,7
+834,7
@@
func TestPutHandlerNoBufferleak(t *testing.T) {
ok <- true
}()
select {
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:
// 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{
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,
ExpectStatusCode(t,
"Unauthenticated request, unsigned locator", http.StatusOK, response)
ExpectBody(t,
@@
-876,7
+876,7
@@
func TestGetHandlerNoBufferleak(t *testing.T) {
ok <- true
}()
select {
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:
// If the buffer pool leaks, the test goroutine hangs.
t.Fatal("test did not finish, assuming pool leaked")
case <-ok: