Fix UnitTest with default TimeZone

This commit is contained in:
Philoul 2022-06-21 23:25:41 +02:00
parent 3d36964431
commit 4e8d057979

View file

@ -40,6 +40,7 @@ class AutotuneCoreTest : TestBaseWithProfile() {
@Before @Before
fun initData() { fun initData() {
autotuneCore = AutotuneCore(sp,autotuneFS) autotuneCore = AutotuneCore(sp,autotuneFS)
TimeZone.setDefault(TimeZone.getTimeZone("GMT+2"))
prepjson = File("src/test/res/autotune/test1/autotune.2022-05-21.json").readText() prepjson = File("src/test/res/autotune/test1/autotune.2022-05-21.json").readText()
val inputProfileJson = File("src/test/res/autotune/test1/profile.pump.json").readText() val inputProfileJson = File("src/test/res/autotune/test1/profile.pump.json").readText()
inputProfile = atProfileFromOapsJson(JSONObject(inputProfileJson), dateUtil)!! inputProfile = atProfileFromOapsJson(JSONObject(inputProfileJson), dateUtil)!!