         chai.expect(data.data).to.equal 'Hello'
         chai.expect(data.datatype).to.equal 'string'
         done()
+        return
       p.handleIP new noflo.IP 'data', 'Hello'
+      return
     it 'should keep an IP object\'s datatype as-is if already set', (done) ->
       p = new noflo.InPort
         datatype: 'string'

        required: true
      ps.inPorts.in.on 'connect', ->
        receivedEvents.push 'connect'
      ps.inPorts.in.on 'data', ->
        receivedEvents.push 'data'
      ps.inPorts.in.on 'disconnect', ->
        receivedEvents.push 'disconnect'
        chai.expect(receivedEvents).to.eql expectedEvents
        done()
      ps.inPorts.in.attach s
      chai.expect(ps.inPorts.in.listAttached()).to.eql [0]
      s.post new noflo.IP 'data', 'some-data'

    it 'should stamp an IP object with the port\'s datatype', (done) ->
      p = new noflo.InPort
        datatype: 'string'

    it 'should retain the type', ->
      chai.expect(p.getDataType()).to.equal 'string'
      chai.expect(p.getSchema()).to.equal 'text/url'
      return
    return
  describe 'without attached sockets', ->
    p = new noflo.InPort
    it 'should not be attached', ->
      chai.expect(p.isAttached()).to.equal false
      chai.expect(p.listAttached()).to.eql []
      return
    it 'should allow attaching', ->
      chai.expect(p.canAttach()).to.equal true
      return
    it 'should not be connected initially', ->
      chai.expect(p.isConnected()).to.equal false
      return
    it 'should not contain a socket initially', ->
      chai.expect(p.sockets.length).to.equal 0
      return
    return
  describe 'with processing function called with port as context', ->
    it 'should set context to port itself', (done) ->
      s = new noflo.internalSocket.InternalSocket
