Skip to content

Commit ba70493

Browse files
author
Steve Ramage
committed
ci: remove tests that reference CPUAccounting (Resolves #358)
1 parent 10abdda commit ba70493

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/inspections/MissingRequiredKeyInspectionTest.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
1515
1616
[Service]
1717
Type=oneshot
18-
CPUAccounting=true
19-
2018
""".trimIndent()
2119

2220
// Exercise SUT
@@ -41,8 +39,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
4139
4240
[Service]
4341
Type=oneshot
44-
CPUAccounting=true
45-
4642
""".trimIndent()
4743

4844
// Exercise SUT
@@ -68,8 +64,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
6864
[Service]
6965
Type=oneshot
7066
ExecStart=foo
71-
CPUAccounting=true
72-
7367
""".trimIndent()
7468

7569
// Exercise SUT
@@ -97,8 +91,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
9791
Type=oneshot
9892
ExecStart=foo
9993
ExecStop=bar
100-
CPUAccounting=true
101-
10294
""".trimIndent()
10395

10496
// Exercise SUT

src/test/kotlin/net/sjrx/intellij/plugins/systemdunitfiles/inspections/UnknownKeyInSectionInspectionTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class UnknownKeyInSectionInspectionTest : AbstractUnitFileTest() {
284284
// Fixture Setup
285285
val file = """
286286
[Service]
287-
CPUAccounting=on
287+
CPUWeight=1
288288
""".trimIndent()
289289
enableInspection(UnknownKeyInSectionInspection::class.java)
290290
setupFileInEditor("file.service", file)
@@ -501,7 +501,7 @@ class UnknownKeyInSectionInspectionTest : AbstractUnitFileTest() {
501501
// Fixture Setup
502502
val file = """
503503
[Slice]
504-
CPUAccounting=true
504+
CPUWeight=1
505505
""".trimIndent()
506506
enableInspection(UnknownKeyInSectionInspection::class.java)
507507
setupFileInEditor("some.slice", file)

0 commit comments

Comments
 (0)