diff --git a/test/com/google/javascript/jscomp/ScopedAliasesTest.java b/test/com/google/javascript/jscomp/ScopedAliasesTest.java
index <HASH>..<HASH> 100644
--- a/test/com/google/javascript/jscomp/ScopedAliasesTest.java
+++ b/test/com/google/javascript/jscomp/ScopedAliasesTest.java
@@ -691,7 +691,7 @@ public final class ScopedAliasesTest extends CompilerTestCase {
           ""
           + "/** @type {function() : x} */ types.actual;"
           + "/** @type {function() : wrong.wrong} */ types.expected;");
-      fail("Test types should fail here.");
+      throw new Error("Test types should fail here.");
     } catch (AssertionError expected) {
     }
   }
Fix tests that intend to check that an error is thrown but don't.

Tests of a testing API often look like this:

	try {
		runATestThatShouldFail();
		fail();
	} catch (AssertionError expected) {
	}

However, the catch() block can catch not only the expected failure from runATestThatShouldFail() but also the "test did not fail when it should have" failure from fail().
-------------
Created by MOE: <URL>