Skip to content

Commit b7a6094

Browse files
committed
PMM-12913 fix tests
1 parent 731f650 commit b7a6094

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

admin/commands/inventory/remove_agent.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package inventory
1616

1717
import (
1818
"github.com/AlekSi/pointer"
19+
1920
"github.com/percona/pmm/admin/commands"
2021
"github.com/percona/pmm/api/inventory/v1/json/client"
2122
agents "github.com/percona/pmm/api/inventory/v1/json/client/agents_service"

managed/models/agent_helpers_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func TestAgentHelpers(t *testing.T) {
389389

390390
agent, err = models.RemoveAgent(q, "A0", models.RemoveRestrict)
391391
assert.Nil(t, agent)
392-
tests.AssertGRPCError(t, status.New(codes.NotFound, `Agent with ID "A0" not found.`), err)
392+
tests.AssertGRPCError(t, status.New(codes.NotFound, `Agent with ID A0 not found.`), err)
393393

394394
agent, err = models.RemoveAgent(q, "A1", models.RemoveRestrict)
395395
assert.Nil(t, agent)
@@ -406,7 +406,7 @@ func TestAgentHelpers(t *testing.T) {
406406
assert.Equal(t, expected, agent)
407407
assert.NoError(t, err)
408408
_, err = models.FindAgentByID(q, "A1")
409-
tests.AssertGRPCError(t, status.New(codes.NotFound, `Agent with ID "A1" not found.`), err)
409+
tests.AssertGRPCError(t, status.New(codes.NotFound, `Agent with ID A1 not found.`), err)
410410
})
411411

412412
t.Run("FindPMMAgentsForNode", func(t *testing.T) {

0 commit comments

Comments
 (0)