chore: Upgrade to Go 1.19 (#3617)

This is required as part of #3505.
This commit is contained in:
Kyle Carberry
2022-08-21 17:32:53 -05:00
committed by GitHub
parent d37fb054c8
commit b0fe9bcdd1
52 changed files with 144 additions and 86 deletions

View File

@ -1,6 +1,7 @@
package coderd
import (
"context"
"encoding/json"
"net/http"
"net/http/httptest"
@ -93,7 +94,7 @@ func TestPagination(t *testing.T) {
t.Run(c.Name, func(t *testing.T) {
t.Parallel()
rw := httptest.NewRecorder()
r, err := http.NewRequest("GET", "https://example.com", nil)
r, err := http.NewRequestWithContext(context.Background(), "GET", "https://example.com", nil)
require.NoError(t, err, "new request")
// Set query params