From 98b53cf5740aa1437d612de9810ecd2500c115a5 Mon Sep 17 00:00:00 2001 From: Alex Tymchuk Date: Mon, 18 Sep 2023 12:45:14 +0000 Subject: [PATCH] PMM-12375 fix the TableCount test --- agent/connectionchecker/connection_checker_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/agent/connectionchecker/connection_checker_test.go b/agent/connectionchecker/connection_checker_test.go index 2f076841bf..e4f86ee2a1 100644 --- a/agent/connectionchecker/connection_checker_test.go +++ b/agent/connectionchecker/connection_checker_test.go @@ -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) {