Skip to content

Commit e6356de

Browse files
committed
fix(operator): lint issues
1 parent 85d4839 commit e6356de

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

operator/internal/controller/cluster_state_v2_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,33 +115,32 @@ var _ = Describe("cluster state v2 tests", func() {
115115
var _ = Describe("GetNextSkyhook", func() {
116116
It("returns the first not-complete, not-disabled skyhook", func() {
117117
// Helper to make a skyhookNodes with given complete/disabled
118-
makeSkyhookNodes := func(complete bool, disabled bool, paused bool) SkyhookNodes {
118+
makeSkyhookNodes := func(complete bool, disabled bool) SkyhookNodes {
119119
sn_mock := skyhookNodesMock.MockSkyhookNodes{}
120120
sn_mock.EXPECT().IsComplete().Return(complete)
121121
sn_mock.EXPECT().IsDisabled().Return(disabled)
122-
sn_mock.EXPECT().IsPaused().Return(paused)
123122
return &sn_mock
124123
}
125124

126125
// Not complete, not disabled
127-
n1 := makeSkyhookNodes(false, false, false)
126+
n1 := makeSkyhookNodes(false, false)
128127
// Complete
129-
n2 := makeSkyhookNodes(true, false, false)
128+
n2 := makeSkyhookNodes(true, false)
130129
// Disabled
131-
n3 := makeSkyhookNodes(false, true, false)
130+
n3 := makeSkyhookNodes(false, true)
132131

133132
// Should return n1
134133
result := GetNextSkyhook([]SkyhookNodes{n1, n2, n3})
135134
Expect(result).To(Equal(n1))
136135

137136
// Should return nil as all complete or disabled
138-
n1 = makeSkyhookNodes(true, false, false)
137+
n1 = makeSkyhookNodes(true, false)
139138
result = GetNextSkyhook([]SkyhookNodes{n1, n2, n3})
140139
Expect(result).To(BeNil())
141140

142141
// Should return n3 as all others are complete or disabled
143-
n2 = makeSkyhookNodes(false, true, false)
144-
n3 = makeSkyhookNodes(false, false, false)
142+
n2 = makeSkyhookNodes(false, true)
143+
n3 = makeSkyhookNodes(false, false)
145144
result = GetNextSkyhook([]SkyhookNodes{n1, n2, n3})
146145
Expect(result).To(Equal(n3))
147146
})

0 commit comments

Comments
 (0)