mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
fix: lint issues
This commit is contained in:
parent
1ac5dab2aa
commit
d058ce2b41
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user