Skip to content

Commit

Permalink
Use TimeUnit to properly convert maintenance interval
Browse files Browse the repository at this point in the history
Change-Id: I7bac0515594d27a9136a1be94d0d4a452abf76c2
  • Loading branch information
ttddyy committed Sep 21, 2016
1 parent a262be1 commit 977cc86
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Test;
Expand Down Expand Up @@ -52,7 +53,7 @@ private VerificationHost createAndStartHost(boolean enableAuth) throws Throwable

// to speed up tests, set short maintenance interval.
// it needs to "explicitly" set for VerificationHost instance
host.setMaintenanceIntervalMicros(VerificationHost.FAST_MAINT_INTERVAL_MILLIS * 10);
host.setMaintenanceIntervalMicros(TimeUnit.MILLISECONDS.toMicros(VerificationHost.FAST_MAINT_INTERVAL_MILLIS));
host.start();

// add to the list for cleanup after each test run
Expand Down

0 comments on commit 977cc86

Please sign in to comment.