Skip to content

Commit 800a675

Browse files
committed
ext4 more
1 parent 9184744 commit 800a675

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/e2e/lib/gce/instance.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"os/exec"
2222
"time"
2323

24+
"k8s.io/klog/v2"
2425
"k8s.io/node-problem-detector/test/e2e/lib/ssh"
2526

2627
. "github.com/onsi/gomega"
@@ -148,6 +149,7 @@ func (ins *Instance) RunCommand(cmd string) ssh.Result {
148149

149150
// RunCommand runs a command on the GCE instance and returns the command result, and fails the test when the command failed.
150151
func (ins *Instance) RunCommandOrFail(cmd string) ssh.Result {
152+
klog.Infof("Running command: %s", cmd)
151153
result := ins.RunCommand(cmd)
152154
Expect(result.SSHError).ToNot(HaveOccurred(), "SSH-ing to the instance failed: %v\n", result)
153155
Expect(result.Code).To(Equal(0), "Running command failed: %v\n", result)

test/e2e/metriconly/metrics_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
132132
})
133133

134134
ginkgo.It("NPD should update problem_counter{reason:Ext4Error} and problem_gauge{type:ReadonlyFilesystem}", func() {
135-
time.Sleep(60 * time.Second)
135+
ginkgo.Skip("SSH connection fails.")
136+
time.Sleep(5 * time.Second)
136137
assertMetricValueAtLeast(instance,
137138
"problem_counter", map[string]string{"reason": "Ext4Error"},
138139
1.0)
@@ -159,7 +160,6 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
159160
})
160161

161162
ginkgo.It("NPD should update problem_counter and problem_gauge", func() {
162-
ginkgo.Skip("SSH connection fails.")
163163
time.Sleep(5 * time.Second)
164164
assertMetricValueInBound(instance,
165165
"problem_counter", map[string]string{"reason": "DockerHung"},

0 commit comments

Comments
 (0)