Fix a couple of lint warnings

This commit is contained in:
Pedro Pombeiro 2018-02-09 10:28:27 +01:00
parent 3c83c93039
commit 8c3aa9a619
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ func (s *CellTestSuite) TestCellFetchRace() {
case data := <-dataCh:
// Mark the request as successful.
expected[data.String()] = true
case _ = <-errCh:
case <-errCh:
s.Fail("fetch failed to complete the request")
case <-time.After(5 * time.Second):
s.Fail("test timed out")
@ -164,7 +164,7 @@ func (s *CellTestSuite) TestCellFetchErrorRace() {
s.NoError(err)
select {
case _ = <-dataCh:
case <-dataCh:
s.Fail("fetch didn't return error for nonexistent url")
case e := <-errCh:
name, err := e.Object().Get("name")