mirror of
https://github.com/google/nomulus
synced 2026-09-12 02:56:26 +00:00
Make dependency injection and construction of DnsQueue nicer
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146783008
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
package google.registry.dns;
|
||||
|
||||
import static com.google.appengine.api.taskqueue.QueueFactory.getQueue;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.TaskQueueHelper.assertNoTasksEnqueued;
|
||||
import static google.registry.testing.TaskQueueHelper.assertTasksEnqueued;
|
||||
@@ -45,8 +44,7 @@ public class DnsQueueTest {
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
dnsQueue = new DnsQueue();
|
||||
dnsQueue.queue = getQueue("dns-pull");
|
||||
dnsQueue = DnsQueue.create();
|
||||
dnsQueue.writeBatchSize = 10;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user