Skip to content

Commit

Permalink
PMM-12375 fix the TableCount test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Sep 18, 2023
1 parent 1cdab8a commit 98b53cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agent/connectionchecker/connection_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ func TestConnectionChecker(t *testing.T) {
Type: inventorypb.ServiceType_MYSQL_SERVICE,
}, 0)
require.NotNil(t, resp)
assert.Equal(t, &agentpb.CheckConnectionResponse_Stats{}, resp.Stats)
// CheckConnectionResponse_Stats are deprecated, but we can't remove them yet without breaking older clients.
expected := &agentpb.CheckConnectionResponse_Stats{
TableCount: 0,
Version: "",
}
assert.Equal(t, expected, resp.Stats)
})

t.Run("MongoDBWithSSL", func(t *testing.T) {
Expand Down

0 comments on commit 98b53cf

Please sign in to comment.