mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 12:47:56 +00:00
Fixed profiler test
This commit is contained in:
@@ -65,7 +65,7 @@ func TestRegularIterator(t *testing.T) {
|
|||||||
client.Database(database).Drop(ctx)
|
client.Database(database).Drop(ctx)
|
||||||
|
|
||||||
// re-enable the profiler
|
// re-enable the profiler
|
||||||
res = client.Database("admin").RunCommand(ctx, primitive.M{"profile": 2, "slowms": 2})
|
res = client.Database("admin").RunCommand(ctx, primitive.D{{"profile", 2}, {"slowms", 2}})
|
||||||
if res.Err() != nil {
|
if res.Err() != nil {
|
||||||
t.Fatalf("Cannot enable profiler: %s", res.Err())
|
t.Fatalf("Cannot enable profiler: %s", res.Err())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user