I ran into the same issue. Not all tests fail when a sim card has a pin code, only some.
I agree the fix would be to detect whether the sim is already locked or not and restore its state during the tear down.
I ran into the same issue.
Not all tests fail when a sim card has a pin code, only some.
I agree the fix would be to detect whether the sim is already locked or not and restore its state during the tear down.