diff --git a/ship/connection_test.go b/ship/connection_test.go index 97b68b89..8966b426 100644 --- a/ship/connection_test.go +++ b/ship/connection_test.go @@ -88,6 +88,14 @@ func (s *ConnectionSuite) TestAbortPendingHandshake() { assert.Equal(s.T(), SmeHelloStateAbortDone, s.sut.smeState) } +func (s *ConnectionSuite) TestRemoveRemoteDeviceConnection() { + s.sut.removeRemoteDeviceConnection() + + s.sut.deviceLocalCon = nil + + s.sut.removeRemoteDeviceConnection() +} + func (s *ConnectionSuite) TestCloseConnection_StateComplete() { s.sut.smeState = SmeStateComplete s.sut.CloseConnection(true, 450, "User Close")