Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Apr 22, 2022
1 parent a8e78ae commit c9beced
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ config.yml
**/*.code-workspace
**/jobservices.yml
**/jobservices.yaml
*.swp
3 changes: 2 additions & 1 deletion notifications_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"encoding/json"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -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)
}
Expand Down
3 changes: 2 additions & 1 deletion users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package main

import (
"context"
"encoding/json"
"fmt"
"net/http"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit c9beced

Please sign in to comment.