~ubuntu-branches/ubuntu/trusty/ubuntu-push/trusty-proposed

« back to all changes in this revision

Viewing changes to server/broker/testsuite/suite.go

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, John Lenton, Richard Huddie
  • Date: 2014-04-11 18:31:57 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140411183157-wfqzbd90wog185lu
Tags: 0.2+14.04.20140411-0ubuntu1
[ John Lenton ]
* New upstream release.

[ Richard Huddie ]
* added basic autopilot framework
* configparser and http post updates
* removed tests folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        c.Assert(err, IsNil)
165
165
        sess2, err := b.Register(&protocol.ConnectMsg{Type: "connect", DeviceId: "dev-1"})
166
166
        c.Assert(err, IsNil)
 
167
        checkAndFalse := false
 
168
        // previous session got signaled by closing its channel
 
169
        select {
 
170
        case _, ok := <-sess1.SessionChannel():
 
171
                checkAndFalse = ok == false
 
172
        default:
 
173
        }
 
174
        c.Check(checkAndFalse, Equals, true)
167
175
        c.Assert(s.RevealSession(b, "dev-1"), Equals, sess2)
168
176
        b.Unregister(sess1)
169
177
        // just to make sure the unregister was processed