Skip to content
Permalink
Browse files

JENKINS-25960: Updated error msg in test to match.

  • Loading branch information...
buep committed Dec 11, 2014
1 parent 4523980 commit 6e27a1ed2eeb8e9321e6624534a2ca15eb1b79f6
@@ -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;
@@ -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

0 comments on commit 6e27a1e

Please sign in to comment.
You can’t perform that action at this time.