Replace AlwaysSample with ProbabilitySampler in router (#1348)

This commit is contained in:
Chris Camel
2019-10-30 20:05:55 +08:00
committed by Ta-Ching Chen
parent a151f89eec
commit bbaf1b0c2d
7 changed files with 25 additions and 6 deletions
+2 -1
View File
@@ -96,9 +96,10 @@ func TestRouter(t *testing.T) {
// run the router
port := 4242
tracingSamplingRate := .5
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
go serve(ctx, logger, port, triggers, frr)
go serve(ctx, logger, port, tracingSamplingRate, triggers, frr)
time.Sleep(100 * time.Millisecond)
// hit the router