Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 2ffdadd

Browse files
committed
Fix tests.
1 parent 8b73a76 commit 2ffdadd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

qan/analyzer/mysql/analyzer_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ func (s *AnalyzerTestSuite) SetUpTest(t *C) {
124124
s.worker = qan_worker.NewQanWorker()
125125
// Config needs to be recreated on every test since it can be modified by the test analyzers
126126
exampleQueries := true
127+
slowLogRotation := true
127128
s.config = pc.QAN{
128-
UUID: s.mysqlUUID,
129-
CollectFrom: "slowlog",
130-
Interval: 60,
131-
WorkerRunTime: 60,
132-
MaxSlowLogSize: MAX_SLOW_LOG_SIZE,
129+
UUID: s.mysqlUUID,
130+
CollectFrom: "slowlog",
131+
Interval: 60,
132+
WorkerRunTime: 60,
133+
MaxSlowLogSize: MAX_SLOW_LOG_SIZE,
134+
SlowLogRotation: &slowLogRotation,
133135
Start: []string{
134136
"-- start",
135137
},

0 commit comments

Comments
 (0)