diff --git a/test/com/google/javascript/jscomp/SymbolTableTest.java b/test/com/google/javascript/jscomp/SymbolTableTest.java
index <HASH>..<HASH> 100644
--- a/test/com/google/javascript/jscomp/SymbolTableTest.java
+++ b/test/com/google/javascript/jscomp/SymbolTableTest.java
@@ -1421,7 +1421,7 @@ public final class SymbolTableTest extends TestCase {
     // Add window so that it triggers logic that defines all global externs on window.
     // See DeclaredGlobalExternsOnWindow.java pass.
     String externs = lines("/** @externs */", "var window", "var foo;");
-    String mainCode = lines("foo;", "window.foo;");
+    String mainCode = lines("foo = 2;", "window.foo = 1;");
     SymbolTable table = createSymbolTable(mainCode, externs);
 
     Map<String, Integer> refsPerFile = new HashMap<>();
Fix flakiness of SymbolTableTest.

The flakiness caused by window.foo; being declared both in externs and main code and compiler doesn't know which one is declaration and which one is "usage" and depending on the order of processing they both might be used as declaration.

By changing test to use "window.foo = 1;" the compiler will treat it as usage. And that's how that variable is going to be used in actual code anyway.

-------------
Created by MOE: <URL>