@@ -115,33 +115,32 @@ var _ = Describe("cluster state v2 tests", func() {
115115var _ = 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