Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rewrite time conversions import in testse

  • Loading branch information...
commit 6a799606c08dc00a476c731c741fba07f2cbf028 1 parent 2554bc8
@freels freels authored
View
2  src/test/scala/com/twitter/gizzard/FutureSpec.scala
@@ -3,7 +3,7 @@ package com.twitter.gizzard
import java.util.concurrent._
import scala.collection.mutable
import com.twitter.util.Time
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import org.specs.Specification
import org.specs.mock.{ClassMocker, JMocker}
import thrift.conversions.Sequences._
View
2  src/test/scala/com/twitter/gizzard/integration/TestServer.scala
@@ -15,7 +15,7 @@ import scheduler.{JobScheduler, JsonJob, CopyJob, CopyJobParser, CopyJobFactory,
package object config {
import com.twitter.gizzard.config._
import com.twitter.querulous.config._
- import com.twitter.util.TimeConversions._
+ import com.twitter.conversions.time._
import com.twitter.util.Duration
trait TestDBConnection extends Connection {
View
2  src/test/scala/com/twitter/gizzard/nameserver/JobRelaySpec.scala
@@ -3,7 +3,7 @@ package nameserver
import org.specs.mock.{ClassMocker, JMocker}
import net.lag.configgy.{Config => CConfig}
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import thrift.{JobInjectorService, TThreadServer, JobInjector}
View
2  src/test/scala/com/twitter/gizzard/nameserver/MemoryShardSpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package nameserver
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import com.twitter.gizzard.shards.{Busy, LinkInfo, ShardId, ShardInfo}
import com.twitter.gizzard.test.NameServerDatabase
import org.specs.Specification
View
2  src/test/scala/com/twitter/gizzard/nameserver/ShardRepositorySpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package nameserver
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import org.specs.Specification
import org.specs.mock.{ClassMocker, JMocker}
View
2  src/test/scala/com/twitter/gizzard/scheduler_new/CopyJobSpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package scheduler
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import org.specs.Specification
import org.specs.mock.{ClassMocker, JMocker}
View
2  src/test/scala/com/twitter/gizzard/scheduler_new/JobSchedulerSpec.scala
@@ -2,7 +2,7 @@ package com.twitter.gizzard
package scheduler
import java.util.concurrent.atomic.AtomicInteger
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import org.specs.Specification
import org.specs.mock.{ClassMocker, JMocker}
import shards.{ShardId, ShardRejectedOperationException}
View
2  src/test/scala/com/twitter/gizzard/scheduler_new/MemoryJobQueueSpec.scala
@@ -3,7 +3,7 @@ package scheduler
import scala.collection.mutable
import com.twitter.util.Time
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import net.lag.kestrel.{PersistentQueue, QItem}
import org.specs.Specification
import org.specs.mock.{ClassMocker, JMocker}
View
2  src/test/scala/com/twitter/gizzard/scheduler_new/PrioritizingJobSchedulerSpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package scheduler
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import net.lag.configgy.Config
import org.specs.mock.{ClassMocker, JMocker}
import org.specs.Specification
View
2  src/test/scala/com/twitter/gizzard/scheduler_new/ReplicatingJobIntegrationSpec.scala
@@ -5,7 +5,7 @@ import java.io.File
import java.util.concurrent.atomic.AtomicInteger
import org.specs.mock.{ClassMocker, JMocker}
import net.lag.configgy.{Config => CConfig}
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import com.twitter.gizzard
import thrift.{JobInjectorService, TThreadServer, JobInjector}
View
2  src/test/scala/com/twitter/gizzard/shards/ReplicatingShardSpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package shards
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import net.lag.logging.Logger
import org.specs.Specification
import org.specs.mock.JMocker
View
2  src/test/scala/com/twitter/gizzard/shards/ShardExceptionSpec.scala
@@ -1,7 +1,7 @@
package com.twitter.gizzard
package shards
-import com.twitter.util.TimeConversions._
+import com.twitter.conversions.time._
import net.lag.logging.{GenericFormatter, Logger, StringHandler}
import org.specs.Specification
import org.specs.mock.JMocker
Please sign in to comment.
Something went wrong with that request. Please try again.