mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 23:35:11 -04:00
fix linter issues (#329)
* fix linter issues * replace fmt with logger Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
parent
1859dc1718
commit
985585f578
8 changed files with 41 additions and 16 deletions
|
@ -211,7 +211,9 @@ func TestGetAttestationHTTP(t *testing.T) {
|
|||
httpServer := httptest.NewServer(http.HandlerFunc(server.getAttestationHTTP))
|
||||
defer httpServer.Close()
|
||||
|
||||
resp, err := http.Get(httpServer.URL + tc.request)
|
||||
req, err := http.NewRequestWithContext(context.Background(), http.MethodGet, httpServer.URL+tc.request, nil)
|
||||
require.NoError(err)
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
require.NoError(err)
|
||||
defer resp.Body.Close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue