Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #472 from tpepper/master
Browse files Browse the repository at this point in the history
testutil: close result channels before ending ssntp session
  • Loading branch information
Tim Pepper authored Aug 17, 2016
2 parents e8916ad + 456d68d commit 098caff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testutil/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ type SsntpTestClient struct {

// Shutdown shuts down the testutil.SsntpTestClient and cleans up state
func (client *SsntpTestClient) Shutdown() {
client.Ssntp.Close()
closeClientChans(client)
client.Ssntp.Close()
}

// NewSsntpTestClientConnection creates an SsntpTestClient and dials the server.
Expand Down
2 changes: 1 addition & 1 deletion testutil/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type SsntpTestController struct {

// Shutdown shuts down the testutil.SsntpTestClient and cleans up state
func (ctl *SsntpTestController) Shutdown() {
ctl.Ssntp.Close()
closeControllerChans(ctl)
ctl.Ssntp.Close()
}

// NewSsntpTestControllerConnection creates an SsntpTestController and dials the server.
Expand Down
2 changes: 1 addition & 1 deletion testutil/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ func (server *SsntpTestServer) CommandForward(uuid string, command ssntp.Command

// Shutdown shuts down the testutil.SsntpTestServer and cleans up state
func (server *SsntpTestServer) Shutdown() {
server.Ssntp.Stop()
closeServerChans(server)
server.Ssntp.Stop()
}

// StartTestServer starts a go routine for based on a
Expand Down

0 comments on commit 098caff

Please sign in to comment.