Commit 7983409a authored by Jacob Vosmaer's avatar Jacob Vosmaer

More _'s for unused arguments in tests

parent d64c1a61
...@@ -19,7 +19,7 @@ func TestIfNoDeployPageExist(t *testing.T) { ...@@ -19,7 +19,7 @@ func TestIfNoDeployPageExist(t *testing.T) {
w := httptest.NewRecorder() w := httptest.NewRecorder()
executed := false executed := false
handleDeployPage(&dir, func(w http.ResponseWriter, r *http.Request) { handleDeployPage(&dir, func(_ http.ResponseWriter, _ *http.Request) {
executed = true executed = true
})(w, nil) })(w, nil)
if !executed { if !executed {
......
...@@ -27,7 +27,7 @@ func TestGzipEncoding(t *testing.T) { ...@@ -27,7 +27,7 @@ func TestGzipEncoding(t *testing.T) {
} }
req.Header.Set("Content-Encoding", "gzip") req.Header.Set("Content-Encoding", "gzip")
contentEncodingHandler(func(w http.ResponseWriter, r *http.Request) { contentEncodingHandler(func(_ http.ResponseWriter, r *http.Request) {
if _, ok := r.Body.(*gzip.Reader); !ok { if _, ok := r.Body.(*gzip.Reader); !ok {
t.Fatal("Expected gzip reader for body, but it's:", reflect.TypeOf(r.Body)) t.Fatal("Expected gzip reader for body, but it's:", reflect.TypeOf(r.Body))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment