Fixing unit tests
This commit is contained in:
parent
9b14b93941
commit
93dac82bd6
4 changed files with 4 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ public class DynamoDBLeaseSerializer implements LeaseSerializer {
|
||||||
private static final String PENDING_CHECKPOINT_SUBSEQUENCE_KEY = "pendingCheckpointSubSequenceNumber";
|
private static final String PENDING_CHECKPOINT_SUBSEQUENCE_KEY = "pendingCheckpointSubSequenceNumber";
|
||||||
private static final String PENDING_CHECKPOINT_STATE_KEY = "pendingCheckpointState";
|
private static final String PENDING_CHECKPOINT_STATE_KEY = "pendingCheckpointState";
|
||||||
private static final String PARENT_SHARD_ID_KEY = "parentShardId";
|
private static final String PARENT_SHARD_ID_KEY = "parentShardId";
|
||||||
private static final String CHILD_SHARD_ID_KEY = "childShardId";
|
private static final String CHILD_SHARD_ID_KEY = "childShardIds";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, AttributeValue> toDynamoRecord(final Lease lease) {
|
public Map<String, AttributeValue> toDynamoRecord(final Lease lease) {
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,7 @@ public class PrefetchRecordsPublisher implements RecordsPublisher {
|
||||||
.records(records)
|
.records(records)
|
||||||
.millisBehindLatest(getRecordsResult.millisBehindLatest())
|
.millisBehindLatest(getRecordsResult.millisBehindLatest())
|
||||||
.cacheEntryTime(lastSuccessfulCall)
|
.cacheEntryTime(lastSuccessfulCall)
|
||||||
.isAtShardEnd(getRecordsRetrievalStrategy.getDataFetcher().isShardEndReached())
|
.isAtShardEnd(getRecordsRetrievalStrategy.dataFetcher().isShardEndReached())
|
||||||
.childShards(getRecordsResult.childShards())
|
.childShards(getRecordsResult.childShards())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -969,7 +969,7 @@ public class HierarchicalShardSyncerTest {
|
||||||
parentShardIds.add(shard.adjacentParentShardId());
|
parentShardIds.add(shard.adjacentParentShardId());
|
||||||
}
|
}
|
||||||
return new Lease(shard.shardId(), leaseOwner, 0L, UUID.randomUUID(), 0L, checkpoint, null, 0L,
|
return new Lease(shard.shardId(), leaseOwner, 0L, UUID.randomUUID(), 0L, checkpoint, null, 0L,
|
||||||
parentShardIds, null);
|
parentShardIds, new HashSet<>(), null);
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public class DynamoDBLeaseRenewerTest {
|
||||||
private LeaseRefresher leaseRefresher;
|
private LeaseRefresher leaseRefresher;
|
||||||
|
|
||||||
private static Lease newLease(String leaseKey) {
|
private static Lease newLease(String leaseKey) {
|
||||||
return new Lease(leaseKey, "LeaseOwner", 0L, UUID.randomUUID(), System.nanoTime(), null, null, null, new HashSet<>(), null);
|
return new Lease(leaseKey, "LeaseOwner", 0L, UUID.randomUUID(), System.nanoTime(), null, null, null, new HashSet<>(), new HashSet<>(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue