summary refs log tree commit diff stats
path: root/tests/unit/test-throttle.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test-throttle.c')
-rw-r--r--tests/unit/test-throttle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-throttle.c b/tests/unit/test-throttle.c
index cb587e33e7..ac35d65d19 100644
--- a/tests/unit/test-throttle.c
+++ b/tests/unit/test-throttle.c
@@ -625,7 +625,7 @@ static bool do_test_accounting(bool is_ops, /* are we testing bps or ops */
     throttle_config_init(&cfg);
 
     for (i = 0; i < 3; i++) {
-        BucketType index = to_test[is_ops][i];
+        index = to_test[is_ops][i];
         cfg.buckets[index].avg = avg;
     }