# HG changeset patch # User Elliott Baron # Date 1367965622 14400 # Node ID 066ee2d7317c42f1857b4a63bba822831db7d5e7 # Parent 17aed647ccffdf8cb24445fff810867642902646 Clear THERMOSTAT_HOME in WebStorageEndpointTest In WebStorageEndpointTest THERMOSTAT_HOME is set as a system property in a setup method, but is never cleared during teardown. This results in the variable still being set for other tests, and causes a test to fail in Severin's JAAS patch if this test executed before it. This commit simply clears the property in the teardown method. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006529.html diff -r 17aed647ccff -r 066ee2d7317c web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java --- a/web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java Tue May 07 11:56:21 2013 -0400 +++ b/web/server/src/test/java/com/redhat/thermostat/web/server/WebStorageEndpointTest.java Tue May 07 18:27:02 2013 -0400 @@ -183,6 +183,8 @@ @After public void tearDown() throws Exception { + System.clearProperty("THERMOSTAT_HOME"); + // some tests don't use server if (server != null) { server.stop();