Skip to content

Commit 4ecaf1f

Browse files
committed
Fix formatting
1 parent 16bd817 commit 4ecaf1f

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

pkg/testsuites/standard_suites.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ var staticSuites = []ginkgo.TestSuite{
428428
Qualifiers: []string{
429429
`name.contains("[Suite:openshift/two-node") || name.contains("[OCPFeatureGate:DualReplica]") || name.contains("[OCPFeatureGate:HighlyAvailableArbiter]")`,
430430
},
431-
TestTimeout: 60 * time.Minute,
431+
TestTimeout: 60 * time.Minute,
432432
Parallelism: 1, // Tests must run serially as they involve node reboots and fencing
433433
ClusterStabilityDuringTest: ginkgo.Disruptive,
434434
},

test/extended/two_node/utils/common.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const (
4343
clusterIsHealthyTimeout = 5 * time.Minute
4444
pollInterval = 5 * time.Second
4545
// Pacemaker timestamp format for parsing operation history
46-
pacemakerTimeFormat = "Mon Jan 2 15:04:05 2006"
46+
pacemakerTimeFormat = "Mon Jan 2 15:04:05 2006"
4747
)
4848

4949
// Minimal XML types for parsing "pcs status xml" node history.
@@ -372,7 +372,7 @@ func HasRecentResourceFailure(oc *exutil.CLI, execNodeName string, resourceID st
372372
var failures []RecentResourceFailure
373373

374374
for _, node := range result.NodeHistory.Node {
375-
// Match resource ID (handles clone resources like "kubelet-clone" matching "kubelet:0", "kubelet:1")
375+
// Match resource ID (handles clone resources like "kubelet-clone" matching "kubelet:0", "kubelet:1")
376376
for _, resourceHistory := range node.ResourceHistory {
377377
if !strings.HasPrefix(resourceHistory.ID, strings.TrimSuffix(resourceID, "-clone")) {
378378
continue
@@ -384,14 +384,14 @@ func HasRecentResourceFailure(oc *exutil.CLI, execNodeName string, resourceID st
384384
continue
385385
}
386386

387-
// Parse the timestamp
387+
// Parse the timestamp
388388
opTime, parseErr := time.Parse(pacemakerTimeFormat, operation.LastRCChange)
389389
if parseErr != nil {
390390
framework.Logf("Warning: failed to parse timestamp %q: %v", operation.LastRCChange, parseErr)
391391
continue
392392
}
393-
394-
// Check if within time window
393+
394+
// Check if within time window
395395
if !opTime.After(cutoffTime) {
396396
continue
397397
}
@@ -545,7 +545,6 @@ func LogEtcdClusterStatus(oc *exutil.CLI, testContext string, etcdClientFactory
545545
return fmt.Errorf("failed to retrieve etcd ClusterOperator: %v", err)
546546
}
547547

548-
549548
// Check if etcd operator is Available
550549
available := false
551550
degraded := false

0 commit comments

Comments
 (0)