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) {