File tree 1 file changed +2
-12
lines changed 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -35,26 +35,16 @@ class TimeZoneNativeTest {
35
35
36
36
@Test
37
37
fun missingTimezoneWhenLocaltimeIsNotSymlinkTest () = withFakeRoot(" ${RESOURCES } missing-timezone/" ) {
38
- val exception = assertFailsWith<IllegalTimeZoneException > {
38
+ assertFailsWith<IllegalTimeZoneException > {
39
39
TimeZone .currentSystemDefault()
40
40
}
41
-
42
- assertTrue(
43
- exception.message?.startsWith(" Could not determine the timezone ID" ) == true ,
44
- " Exception message did not match"
45
- )
46
41
}
47
42
48
43
@Test
49
44
fun incorrectTimezoneTest () = withFakeRoot(" ${RESOURCES } incorrect-timezone/" ) {
50
- val exception = assertFailsWith<IllegalTimeZoneException > {
45
+ assertFailsWith<IllegalTimeZoneException > {
51
46
TimeZone .currentSystemDefault()
52
47
}
53
-
54
- assertTrue(
55
- exception.message?.startsWith(" Could not determine the timezone ID" ) == true ,
56
- " Exception message did not match"
57
- )
58
48
}
59
49
60
50
@Test
You can’t perform that action at this time.
0 commit comments