mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 20:18:34 +02: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:
parent
7986be139d
commit
f212a53232
4 changed files with 33 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue