aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject aurora git commit: Add missing binding to ThriftApiBenchmarks.
Date Fri, 08 May 2015 22:03:08 GMT
Repository: aurora
Updated Branches:
  refs/heads/master a2e952b92 -> 1c09d5833


Add missing binding to ThriftApiBenchmarks.

Reviewed at https://reviews.apache.org/r/33999/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/1c09d583
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/1c09d583
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/1c09d583

Branch: refs/heads/master
Commit: 1c09d58331e531665ac4e8fc42588daf76bc0db8
Parents: a2e952b
Author: Bill Farner <wfarner@apache.org>
Authored: Fri May 8 15:02:38 2015 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Fri May 8 15:03:04 2015 -0700

----------------------------------------------------------------------
 src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/1c09d583/src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java
----------------------------------------------------------------------
diff --git a/src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java b/src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java
index ed1171d..88d27dd 100644
--- a/src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java
+++ b/src/jmh/java/org/apache/aurora/benchmark/ThriftApiBenchmarks.java
@@ -24,8 +24,10 @@ import com.google.inject.AbstractModule;
 import com.google.inject.Guice;
 import com.google.inject.Injector;
 import com.twitter.common.inject.Bindings;
+import com.twitter.common.stats.StatsProvider;
 import com.twitter.common.util.Clock;
 
+import org.apache.aurora.benchmark.fakes.FakeStatsProvider;
 import org.apache.aurora.gen.ReadOnlyScheduler;
 import org.apache.aurora.gen.Response;
 import org.apache.aurora.gen.ScheduleStatus;
@@ -146,6 +148,7 @@ public class ThriftApiBenchmarks {
             bind(CronPredictor.class).toInstance(createThrowingFake(CronPredictor.class));
             bind(QuotaManager.class).toInstance(createThrowingFake(QuotaManager.class));
             bind(LockManager.class).toInstance(createThrowingFake(LockManager.class));
+            bind(StatsProvider.class).toInstance(new FakeStatsProvider());
           }
         },
         new DbModule(Bindings.KeyFactory.PLAIN),


Mime
View raw message