diff --git a/.gitignore b/.gitignore index fb3d641..3db76a2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ config.yml **/*.code-workspace **/jobservices.yml **/jobservices.yaml +*.swp diff --git a/notifications_test.go b/notifications_test.go index 33147b3..c23fa62 100644 --- a/notifications_test.go +++ b/notifications_test.go @@ -1,6 +1,7 @@ package main import ( + "context" "encoding/json" "io/ioutil" "net/http" @@ -63,7 +64,7 @@ func TestSend(t *testing.T) { n.URI = srv.URL - resp, err := n.Send() + resp, err := n.Send(context.Background()) if err != nil { t.Error(err) } diff --git a/users_test.go b/users_test.go index ca3a4b0..e5aed4b 100644 --- a/users_test.go +++ b/users_test.go @@ -2,6 +2,7 @@ package main import ( + "context" "encoding/json" "fmt" "net/http" @@ -62,7 +63,7 @@ func TestGet(t *testing.T) { actual := NewUser("id") actual.URI = srv.URL - err := actual.Get() + err := actual.Get(context.Background()) if err != nil { t.Error(err) }