Whenever I try to delete apex classes from production, I receive the following errors during the validation of all tests in the org on two unrelated test classes, and the entire delete transaction fails:
System.QueryException: sObject type 'RecentlyViewed' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.
The thing is, the ReventlyViewed is the standard Salesforce object that has been around for years, and the two test classes are on API v44.0. The test methods pass successfully during a deployment of new classes or updates to existing classes - I only see this error when trying to delete Apex Classes. Has anyone seen this issue or resolved it?