From 323fc14e0a4b18d529f7e58df922d5036c9a5460 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 8 Dec 2022 17:21:38 -0800 Subject: [PATCH] lib/querytracer: fix tests after 49ebc488094bfe637c01a56e7c39c4af08a6f731 --- lib/querytracer/tracer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/querytracer/tracer_test.go b/lib/querytracer/tracer_test.go index fa278d2b7..2d3dc7d60 100644 --- a/lib/querytracer/tracer_test.go +++ b/lib/querytracer/tracer_test.go @@ -45,7 +45,7 @@ func TestTracerEnabled(t *testing.T) { qt.Printf("parent %d", 789) qt.Donef("foo %d", 33) s := qt.String() - sExpected := `- 0ms: test: foo 33 + sExpected := `- 0ms: : test: foo 33 | - 0ms: child done 456 | | - 0ms: foo 123 | - 0ms: parent 789 @@ -60,7 +60,7 @@ func TestTracerMultiline(t *testing.T) { qt.Printf("line3\nline4\n") qt.Done() s := qt.String() - sExpected := `- 0ms: line1 + sExpected := `- 0ms: : line1 | line2 | - 0ms: line3 | | line4 @@ -84,7 +84,7 @@ func TestTracerToJSON(t *testing.T) { qt.Printf("parent %d", 789) qt.Done() s := qt.ToJSON() - sExpected := `{"duration_msec":0,"message":"test","children":[` + + sExpected := `{"duration_msec":0,"message":": test","children":[` + `{"duration_msec":0,"message":"child done 456","children":[` + `{"duration_msec":0,"message":"foo 123"}]},` + `{"duration_msec":0,"message":"parent 789"}]}`