Skip to content

Commit

Permalink
PMM-12251 Fix annotation API test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 29, 2023
1 parent d263e69 commit 36ac96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-tests/management/annotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestAddAnnotation(t *testing.T) {
resNode, err := inventoryClient.Default.Nodes.AddGenericNode(paramsNode)
assert.NoError(t, err)
genericNodeID := resNode.Payload.Generic.NodeID
defer pmmapitests.UnregisterNodes(t, genericNodeID)
defer pmmapitests.RemoveNodes(t, genericNodeID)

serviceName := pmmapitests.TestString(t, "annotation-service")
paramsService := &services.AddMySQLServiceParams{
Expand Down Expand Up @@ -131,7 +131,7 @@ func TestAddAnnotation(t *testing.T) {
}
res, err := inventoryClient.Default.Nodes.AddGenericNode(params)
assert.NoError(t, err)
defer pmmapitests.UnregisterNodes(t, res.Payload.Generic.NodeID)
defer pmmapitests.RemoveNodes(t, res.Payload.Generic.NodeID)

paramsAdd := &annotation.AddAnnotationParams{
Body: annotation.AddAnnotationBody{
Expand Down

0 comments on commit 36ac96a

Please sign in to comment.