Skip to content

Commit e115e69

Browse files
SJrXSteve Ramage
andauthored
ci: remove tests that reference CPUAccounting (Resolves #358) (#359)
Co-authored-by: Steve Ramage <[email protected]>
1 parent 296e365 commit e115e69

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

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

@@ -41,7 +40,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
4140
4241
[Service]
4342
Type=oneshot
44-
CPUAccounting=true
4543
4644
""".trimIndent()
4745

@@ -68,7 +66,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
6866
[Service]
6967
Type=oneshot
7068
ExecStart=foo
71-
CPUAccounting=true
7269
7370
""".trimIndent()
7471

@@ -97,7 +94,6 @@ class MissingRequiredKeyInspectionTest : AbstractUnitFileTest() {
9794
Type=oneshot
9895
ExecStart=foo
9996
ExecStop=bar
100-
CPUAccounting=true
10197
10298
""".trimIndent()
10399

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
@@ -297,7 +297,7 @@ class UnknownKeyInSectionInspectionTest : AbstractUnitFileTest() {
297297
// language="unit file (systemd)"
298298
val file = """
299299
[Service]
300-
CPUAccounting=on
300+
CPUWeight=1
301301
""".trimIndent()
302302
enableInspection(UnknownKeyInSectionInspection::class.java)
303303
setupFileInEditor("file.service", file)
@@ -526,7 +526,7 @@ class UnknownKeyInSectionInspectionTest : AbstractUnitFileTest() {
526526
// language="unit file (systemd)"
527527
val file = """
528528
[Slice]
529-
CPUAccounting=true
529+
CPUWeight=1
530530
""".trimIndent()
531531
enableInspection(UnknownKeyInSectionInspection::class.java)
532532
setupFileInEditor("some.slice", file)

0 commit comments

Comments
 (0)