Merge "Use same timestamp for group audit log in ReviewDb and NoteDb"

This commit is contained in:
Alice Kober-Sotzek
2017-11-30 15:11:37 +00:00
committed by Gerrit Code Review
12 changed files with 96 additions and 65 deletions

View File

@@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import com.google.gerrit.common.TimeUtil;
import com.google.gerrit.reviewdb.client.Account;
import com.google.gerrit.reviewdb.client.AccountGroup;
import com.google.gerrit.reviewdb.client.AccountGroupByIdAud;
@@ -288,7 +287,6 @@ public final class AuditLogReaderTest extends AbstractGroupTest {
.setGroupUUID(GroupUUID.make(groupName, serverIdent))
.setNameKey(new AccountGroup.NameKey(groupName))
.setId(new AccountGroup.Id(next))
.setCreatedOn(TimeUtil.nowTs())
.build();
InternalGroupUpdate groupUpdate =
authorIdent.equals(serverIdent)

View File

@@ -236,8 +236,7 @@ public class GroupConfigTest {
return InternalGroupCreation.builder()
.setGroupUUID(groupUuid)
.setNameKey(groupName)
.setId(groupId)
.setCreatedOn(TimeUtil.nowTs());
.setId(groupId);
}
private void populateGroupConfig(AccountGroup.UUID uuid, String fileContent) throws Exception {