Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test: release services on test operations completion

That is finishes main thread execution

Author: @viktortnk
Fixes #187
URL: #187
  • Loading branch information...
commit cab2d30dbe27acddbe005bf64daa38f53274477a 1 parent 61967eb
@viktortnk viktortnk authored Franklin Hu committed
View
4 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()
}
Please sign in to comment.
Something went wrong with that request. Please try again.