~ci-train-bot/ubuntu-push/ubuntu-push-ubuntu-yakkety-landing-014

« back to all changes in this revision

Viewing changes to server/session/session_test.go

  • Committer: Bileto Bot
  • Author(s): jonas-drange
  • Date: 2016-07-18 13:27:17 UTC
  • mfrom: (162.5.1 remove-unused)
  • Revision ID: ci-train-bot@canonical.com-20160718132717-4bj1tnnzvwgnz2ow
remove unused sess variable

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
}
167
167
 
168
168
func (s *sessionSuite) TestSessionRegisterError(c *C) {
169
 
        var sess broker.BrokerSession
170
169
        errCh := make(chan error, 1)
171
170
        up := make(chan interface{}, 5)
172
171
        down := make(chan interface{}, 5)
176
175
        brkr.err = errRegister
177
176
        go func() {
178
177
                var err error
179
 
                sess, err = sessionStart(tp, brkr, cfg10msPingInterval5msExchangeTout, &tracker{sessionId: "s2"})
 
178
                _, err = sessionStart(tp, brkr, cfg10msPingInterval5msExchangeTout, &tracker{sessionId: "s2"})
180
179
                errCh <- err
181
180
        }()
182
181
        up <- protocol.ConnectMsg{Type: "connect", ClientVer: "1", DeviceId: "dev-1"}