Permalink
Browse files

test: release services on test operations completion

That is finishes main thread execution

Author: @viktortnk
Fixes #187
URL: #187
  • Loading branch information...
1 parent 61967eb commit cab2d30dbe27acddbe005bf64daa38f53274477a @viktortnk viktortnk committed with Franklin Hu Oct 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 zipkin-test/src/main/scala/com/twitter/zipkin/tracegen/Requests.scala
@@ -50,6 +50,8 @@ class Requests(collectorHost: String, collectorPort: Int, queryHost: String, que
println("Sending: " + s + ". Response: " + client.log(entries)())
})
})
+
+ service.release()
}
def printTrace(traceIds: Seq[Long], client: gen.ZipkinQuery.FinagledClient) {
@@ -99,6 +101,8 @@ class Requests(collectorHost: String, collectorPort: Int, queryHost: String, que
println("Data ttl: " + client.getDataTimeToLive()())
println("Service names: " + client.getServiceNames()())
println("Span names for : " + service + " " + client.getSpanNames(service)())
+
+ serviceClient.release()
}

0 comments on commit cab2d30

Please sign in to comment.