Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
use error message instead of toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Hull committed Feb 28, 2011
1 parent 1f3b23d commit dd6e277
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -77,7 +77,7 @@ class OptimisticLockRegressionSpec extends IntegrationSpecification() {
var found = false
while (errors.size > 0) {
val job = errors.get.get.job
if (job.toString.indexOf("lost optimistic lock") > 0) {
if (job.errorMessage.indexOf("lost optimistic lock") > 0) {
found = true
}
job()
Expand Down

0 comments on commit dd6e277

Please sign in to comment.