Skip to content

Commit

Permalink
JENKINS-25960: Updated error msg in test to match.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bue Petersen committed Dec 11, 2014
1 parent 4523980 commit 6e27a1e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -36,6 +36,7 @@
import static junit.framework.TestCase.assertNotNull;
import static junit.framework.TestCase.assertTrue;
import org.eclipse.jgit.lib.Repository;
import org.jenkinsci.plugins.pretestedintegration.scm.git.GitMessages;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
Expand Down Expand Up @@ -336,8 +337,9 @@ public void oneReadyPlusTwoMasterConfiguration() throws Exception {
integratedRepo3 = true;

} else if (build.getResult().equals(Result.NOT_BUILT)) {
String msg = GitMessages.NoRelevantSCMchange("repo3/ready/repo3_feature_1");
assertTrue("Error message related to detecting the wrong git scm was not found.",
console.contains("contained in the git build data object, did not match a remote branch name"));
console.contains(msg));
notBuildOnOtherRepoChanges = true;
} else {
// all other build results
Expand Down

0 comments on commit 6e27a1e

Please sign in to comment.