From d058ce2b41c065249d3ae4d13ec10e7aa56301dd Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Mon, 19 May 2025 09:29:30 +0200 Subject: [PATCH] fix: lint issues --- client/client_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index e30ed36..d36585a 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -16,9 +16,9 @@ import ( ) func TestUpdate(t *testing.T) { - t.Parallel() testWithClients(t, func(t *testing.T, c *client.Client) { t.Helper() + t.Parallel() response, err := c.Update(t.Context()) require.NoError(t, err) require.True(t, response.Success, "update has to return .Sucesss true") @@ -28,9 +28,9 @@ func TestUpdate(t *testing.T) { } func TestGetURIs(t *testing.T) { - t.Parallel() testWithClients(t, func(t *testing.T, c *client.Client) { t.Helper() + t.Parallel() request := mock.MakeValidURIsRequest() uriMap, err := c.GetURIs(t.Context(), request.Dimension, request.IDs) time.Sleep(100 * time.Millisecond) @@ -40,9 +40,9 @@ func TestGetURIs(t *testing.T) { } func TestGetRepo(t *testing.T) { - t.Parallel() testWithClients(t, func(t *testing.T, c *client.Client) { t.Helper() + t.Parallel() r, err := c.GetRepo(t.Context()) require.NoError(t, err) if assert.NotEmpty(t, r, "received empty JSON from GetRepo") { @@ -52,9 +52,9 @@ func TestGetRepo(t *testing.T) { } func TestGetNodes(t *testing.T) { - t.Parallel() testWithClients(t, func(t *testing.T, c *client.Client) { t.Helper() + t.Parallel() nodesRequest := mock.MakeNodesRequest() nodes, err := c.GetNodes(t.Context(), nodesRequest.Env, nodesRequest.Nodes) require.NoError(t, err) @@ -73,9 +73,9 @@ func TestGetNodes(t *testing.T) { } func TestGetContent(t *testing.T) { - t.Parallel() testWithClients(t, func(t *testing.T, c *client.Client) { t.Helper() + t.Parallel() request := mock.MakeValidContentRequest() response, err := c.GetContent(t.Context(), request) require.NoError(t, err)