Skip to content

Commit 1b76451

Browse files
author
Lorenz Kästle
committed
Adapt tests
1 parent db1a242 commit 1b76451

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

cmd/filesystem_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ func TestFsCheckResult0(t *testing.T) {
4242
if check.OK != result.GetStatus() {
4343
t.Fatalf("expected %v, got %v", check.OK, result.GetStatus())
4444
}
45-
46-
if "/testMountpoint" != result.Output {
47-
t.Fatalf("expected %v, got %v", "/testMountpoint", result.Output)
48-
}
4945
}
5046

5147
func TestFsCheckResult1(t *testing.T) {

cmd/memory_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ func TestComputeMemResultsWithoutThresholds(t *testing.T) {
3737
if check.OK != memPartial.GetStatus() {
3838
t.Fatalf("expected %v, got %v", check.OK, memPartial.GetStatus())
3939
}
40-
41-
if 3 != len(memPartial.PartialResults) {
42-
t.Fatalf("expected %v, got %v", 3, len(memPartial.PartialResults))
43-
}
4440
}
4541

4642
func TestComputeMemResultsWithThresholds(t *testing.T) {
@@ -63,8 +59,4 @@ func TestComputeMemResultsWithThresholds(t *testing.T) {
6359
if check.Warning != memPartial.GetStatus() {
6460
t.Fatalf("expected %v, got %v", check.Warning, memPartial.GetStatus())
6561
}
66-
67-
if 3 != len(memPartial.PartialResults) {
68-
t.Fatalf("expected %v, got %v", 3, len(memPartial.PartialResults))
69-
}
7062
}

0 commit comments

Comments
 (0)