mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 01:33:14 +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 := NewProfiler(iter, filters, nil, s)
|
||||||
|
|
||||||
prof.Start()
|
prof.Start()
|
||||||
|
defer prof.Stop()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case queries := <-prof.QueriesChan():
|
case queries := <-prof.QueriesChan():
|
||||||
s := queries.CalcQueriesStats(1)
|
s := queries.CalcQueriesStats(1)
|
||||||
|
Reference in New Issue
Block a user