@@ -272,7 +272,6 @@ var test03ContentDiscovery = func() {
272272 Expect (err ).To (BeNil ())
273273 Expect (resp .StatusCode ()).To (Equal (http .StatusOK ))
274274 tagList = getTagList (resp )
275- Expect (err ).To (BeNil ())
276275 Expect (len (tagList )).To (Equal (numResults ))
277276 })
278277
@@ -283,16 +282,18 @@ var test03ContentDiscovery = func() {
283282 SetQueryParam ("n" , strconv .Itoa (numResults ))
284283 resp , err := client .Do (req )
285284 Expect (err ).To (BeNil ())
285+ Expect (resp .StatusCode ()).To (Equal (http .StatusOK ))
286286 tagList = getTagList (resp )
287+ last := tagList [numResults - 1 ]
287288 req = client .NewRequest (reggie .GET , "/v2/<name>/tags/list" ).
288289 SetQueryParam ("n" , strconv .Itoa (numResults )).
289290 SetQueryParam ("last" , tagList [numResults - 1 ])
290291 resp , err = client .Do (req )
291292 Expect (err ).To (BeNil ())
292293 Expect (resp .StatusCode ()).To (Equal (http .StatusOK ))
293- Expect ( err ). To ( BeNil () )
294+ tagList = getTagList ( resp )
294295 Expect (len (tagList )).To (BeNumerically ("<=" , numResults ))
295- Expect (tagList ).To (ContainElement (tagList [ numResults - 1 ] ))
296+ Expect (tagList ).ToNot (ContainElement (last ))
296297 })
297298 })
298299
0 commit comments