fix: lint issues

This commit is contained in:
Kevin Franklin Kim 2025-05-19 09:29:30 +02:00
parent 1ac5dab2aa
commit d058ce2b41
No known key found for this signature in database

View File

@ -16,9 +16,9 @@ import (
) )
func TestUpdate(t *testing.T) { func TestUpdate(t *testing.T) {
t.Parallel()
testWithClients(t, func(t *testing.T, c *client.Client) { testWithClients(t, func(t *testing.T, c *client.Client) {
t.Helper() t.Helper()
t.Parallel()
response, err := c.Update(t.Context()) response, err := c.Update(t.Context())
require.NoError(t, err) require.NoError(t, err)
require.True(t, response.Success, "update has to return .Sucesss true") 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) { func TestGetURIs(t *testing.T) {
t.Parallel()
testWithClients(t, func(t *testing.T, c *client.Client) { testWithClients(t, func(t *testing.T, c *client.Client) {
t.Helper() t.Helper()
t.Parallel()
request := mock.MakeValidURIsRequest() request := mock.MakeValidURIsRequest()
uriMap, err := c.GetURIs(t.Context(), request.Dimension, request.IDs) uriMap, err := c.GetURIs(t.Context(), request.Dimension, request.IDs)
time.Sleep(100 * time.Millisecond) time.Sleep(100 * time.Millisecond)
@ -40,9 +40,9 @@ func TestGetURIs(t *testing.T) {
} }
func TestGetRepo(t *testing.T) { func TestGetRepo(t *testing.T) {
t.Parallel()
testWithClients(t, func(t *testing.T, c *client.Client) { testWithClients(t, func(t *testing.T, c *client.Client) {
t.Helper() t.Helper()
t.Parallel()
r, err := c.GetRepo(t.Context()) r, err := c.GetRepo(t.Context())
require.NoError(t, err) require.NoError(t, err)
if assert.NotEmpty(t, r, "received empty JSON from GetRepo") { if assert.NotEmpty(t, r, "received empty JSON from GetRepo") {
@ -52,9 +52,9 @@ func TestGetRepo(t *testing.T) {
} }
func TestGetNodes(t *testing.T) { func TestGetNodes(t *testing.T) {
t.Parallel()
testWithClients(t, func(t *testing.T, c *client.Client) { testWithClients(t, func(t *testing.T, c *client.Client) {
t.Helper() t.Helper()
t.Parallel()
nodesRequest := mock.MakeNodesRequest() nodesRequest := mock.MakeNodesRequest()
nodes, err := c.GetNodes(t.Context(), nodesRequest.Env, nodesRequest.Nodes) nodes, err := c.GetNodes(t.Context(), nodesRequest.Env, nodesRequest.Nodes)
require.NoError(t, err) require.NoError(t, err)
@ -73,9 +73,9 @@ func TestGetNodes(t *testing.T) {
} }
func TestGetContent(t *testing.T) { func TestGetContent(t *testing.T) {
t.Parallel()
testWithClients(t, func(t *testing.T, c *client.Client) { testWithClients(t, func(t *testing.T, c *client.Client) {
t.Helper() t.Helper()
t.Parallel()
request := mock.MakeValidContentRequest() request := mock.MakeValidContentRequest()
response, err := c.GetContent(t.Context(), request) response, err := c.GetContent(t.Context(), request)
require.NoError(t, err) require.NoError(t, err)