Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dev-tools/dependencies/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ fi
NAME="$1"
SRCH="$2"
REPL="$3"
OLDV="$SRCH"
SRCH=${SRCH//./\\.}
git grep -n --color "$SRCH" | cat
git grep -l "$SRCH" | while read f; do
sed -e "s/$SRCH/$REPL/g" -i.bak $f || true
rm -f $f.bak
done
git add -p
git commit -m "Bump $NAME from $OLDV to $NEWV"
git commit -m "Bump $NAME from $OLDV to $REPL"
if [ $(git diff | wc -l) -gt 0 ] ; then
git stash
git stash drop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public void failsWithExpectedTimeoutButWrongError() {
assertThat(failures.size()).as("Failures: " + failures).isEqualTo(1);

Failure failure = failures.get(0);
String expectedMessage = "\n"
String expectedMessage = System.lineSeparator()
+ "Expected: (an instance of java.util.concurrent.TimeoutException and exception with message a string containing \"this is a message for FailsWithExpectedTimeoutButWrongError\")"
+ "\n" + " "
+ System.lineSeparator() + " "
+ "but: an instance of java.util.concurrent.TimeoutException <java.lang.NullPointerException> is a java.lang.NullPointerException";
assertThat(failure.getException()).isExactlyInstanceOf(AssertionError.class)
.hasMessageContaining(expectedMessage);
Expand Down