function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John BreedloveJohn Breedlove 

Fixing a failing test class in production

I have a test class in production that is failing because it's pulling back too many records.  In the sandbox, I fixed it by just limiting the SOQL query.  However, when I try to push it to production via a change set, it fails because the test class I'm trying to replace fails in production.... which of course it does, that's why I'm trying to replace it!

How do I properly push this change to production?
Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
You first need to remove failing class from production

This https://help.salesforce.com/apex/HTViewSolution?id=000006188&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000006188&language=en_US) article might help you.


Thnkas,
N.J