Skip to content

Commit

Permalink
Shutdown servers after test
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Collison committed Dec 19, 2014
1 parent 48f6086 commit c44a25e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/client_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ func TestServerRestartAndQueueSubs(t *testing.T) {

// This will test request semantics across a route
func TestRequestsAcrossRoutes(t *testing.T) {
_, _, optsA, optsB := runServers(t)
srvA, srvB, optsA, optsB := runServers(t)
defer srvA.Shutdown()
defer srvB.Shutdown()

urlA := fmt.Sprintf("nats://%s:%d/", optsA.Host, optsA.Port)
urlB := fmt.Sprintf("nats://%s:%d/", optsB.Host, optsB.Port)
Expand Down Expand Up @@ -269,7 +271,9 @@ func TestRequestsAcrossRoutes(t *testing.T) {

// This will test request semantics across a route to queues
func TestRequestsAcrossRoutesToQueues(t *testing.T) {
_, _, optsA, optsB := runServers(t)
srvA, srvB, optsA, optsB := runServers(t)
defer srvA.Shutdown()
defer srvB.Shutdown()

urlA := fmt.Sprintf("nats://%s:%d/", optsA.Host, optsA.Port)
urlB := fmt.Sprintf("nats://%s:%d/", optsB.Host, optsB.Port)
Expand Down Expand Up @@ -313,5 +317,4 @@ func TestRequestsAcrossRoutesToQueues(t *testing.T) {
t.Fatalf("Received an error on Request test [%d]: %s", i, err)
}
}

}

0 comments on commit c44a25e

Please sign in to comment.