You need to sign in to do that
Don't have an account?
dawnzdy
Test class error: LICENSE_LIMIT_EXCEEDED
Hello,
I have a trigger and corrseponding test class, they used to be working fine. But today, when I run the test, it comes up with this error:
System.Exception: Assertion Failed: Insert failed. First exception on row 0; first error: LICENSE_LIMIT_EXCEEDED, license limit exceeded
In the test case, I used System.runAs(newUser).
Any idea on this?
Thanks!
Solved. Because the license in production has reached the maximum limit, and in the test I was trying to insert a new user.