Turn on UseCorrectAssertInTests bug pattern and fix problem Details: https://errorprone.info/bugpattern/UseCorrectAssertInTests Change-Id: Ic36f6cdcc509cb00a2a64f78672107dace4b92fe
diff --git a/tools/BUILD b/tools/BUILD index df5a729..6cc108b 100644 --- a/tools/BUILD +++ b/tools/BUILD
@@ -450,7 +450,7 @@ "-Xep:UnusedNestedClass:ERROR", # "-Xep:UnusedVariable:WARN", "-Xep:UseBinds:ERROR", - # "-Xep:UseCorrectAssertInTests:WARN", + "-Xep:UseCorrectAssertInTests:ERROR", "-Xep:VarTypeName:ERROR", "-Xep:VariableNameSameAsType:ERROR", "-Xep:WaitNotInLoop:ERROR",