From 498f93af164bd339b6a94bdb6e236df41d81b936 Mon Sep 17 00:00:00 2001 From: Siva Velusamy Date: Thu, 21 May 2015 16:31:28 -0700 Subject: Fix test that assumed that previews were disabled by default Change-Id: I7d6578914b2d32b65599921dba40b064ba3770ee --- .../sdkuilib/internal/repository/core/PackagesDiffLogicTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java b/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java index 8135c08..4928540 100755 --- a/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java +++ b/sdkmanager/sdkuilib/src/test/java/com/android/sdkuilib/internal/repository/core/PackagesDiffLogicTest.java @@ -982,7 +982,10 @@ public class PackagesDiffLogicTest extends TestCase { public void testToolsPreviewsDisabled() { // Test: No local tools installed. The remote server has both tools and platforms // in release and RC versions. However the settings "enable previews" is disabled - // (which is the default) so the previews are not actually loaded from the server. + // so the previews are not actually loaded from the server. + + // Disable previews in the settings + u.overrideSetting(ISettingsPage.KEY_ENABLE_PREVIEWS, false); SdkSource src1 = new SdkRepoSource("http://1.example.com/url1", "repo1"); -- cgit v1.2.3