When trying to deploying from Sandbox to Production, one our test fails because a Record Owner is set to be a user whose license has been disabled in production.
Given that the code is not setting the record owner in the tests, how is the Record Owner determined?