Skip to content

Commit

Permalink
Add a small test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Jan 5, 2024
1 parent 0141f27 commit 1e072ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ship/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1e072ce

Please sign in to comment.