Skip to content

Commit

Permalink
Merge branch 'develop' into feature/census-data-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sandypadmanabhan committed Apr 30, 2021
2 parents 85c2849 + 753b8d3 commit 041c218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ func GetAPIWithMocks(mockedDataStore store.Storer, mockedGeneratedDownloads Down
}

func createRequestWithAuth(method, URL string, body io.Reader) (*http.Request, error) {
r, err := http.NewRequest(method, URL, body)
r := httptest.NewRequest(method, URL, body)
ctx := r.Context()
ctx = dprequest.SetCaller(ctx, "[email protected]")
r = r.WithContext(ctx)
return r, err
return r, nil
}

func TestGetDatasetsReturnsOK(t *testing.T) {
Expand Down

0 comments on commit 041c218

Please sign in to comment.