Fix UnitTest with default TimeZone
This commit is contained in:
parent
3d36964431
commit
4e8d057979
|
@ -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)!!
|
||||||
|
|
Loading…
Reference in a new issue