mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
stop profiler before exiting test
This commit is contained in:
@@ -288,6 +288,8 @@ func TestCalcStats(t *testing.T) {
|
||||
prof := NewProfiler(iter, filters, nil, s)
|
||||
|
||||
prof.Start()
|
||||
defer prof.Stop()
|
||||
|
||||
select {
|
||||
case queries := <-prof.QueriesChan():
|
||||
s := queries.CalcQueriesStats(1)
|
||||
|
Reference in New Issue
Block a user