Timeline for Testing Batchable with Callout Error: You have uncommitted work pending. Please commit or rollback before calling out [duplicate]
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 17, 2019 at 17:14 | history | closed |
Raul Vijay Ganji Pranay Jaiswal battery.cord glls |
Duplicate of test class with Batch and Callout [duplicate] | |
Jul 17, 2019 at 6:20 | review | Close votes | |||
Jul 17, 2019 at 17:14 | |||||
Jul 17, 2019 at 4:38 | comment | added | Raul | Had similar problem, after wasting a lot of time figured that somehow Database.executeBatch is counted as a dml. Had to move all logic from execute to another @TestVisible private function and test logic separately. | |
Jul 16, 2019 at 20:05 | history | edited | Robs | CC BY-SA 4.0 |
edited body
|
Jul 16, 2019 at 18:23 | history | asked | Robs | CC BY-SA 4.0 |