summaryrefslogtreecommitdiff
path: root/aws
diff options
context:
space:
mode:
Diffstat (limited to 'aws')
-rw-r--r--aws/testutils.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/aws/testutils.go b/aws/testutils.go
index 77edeeb4..a25ca429 100644
--- a/aws/testutils.go
+++ b/aws/testutils.go
@@ -13,6 +13,7 @@ import (
func MockServer(code int, body string) (*httptest.Server, *Ec2Meta) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(code)
+ // nolint: errcheck
fmt.Fprintln(w, body)
}))