mirror of
https://github.com/google/nomulus
synced 2026-09-01 05:37:08 +00:00
Preserve update_time when replicating to SQL (#1316)
* Preserve update_time when replicating to SQL Prevent InitSqlPipeline from changing the UpdateAutoTimestamp fields in entities.
This commit is contained in:
@@ -306,6 +306,7 @@ class InitSqlPipelineTest {
|
||||
.build());
|
||||
exportDir = store.export(exportRootDir.getAbsolutePath(), ALL_KINDS, ImmutableSet.of());
|
||||
commitLogDir = Files.createDirectory(tmpDir.resolve("commits")).toFile();
|
||||
fakeClock.advanceOneMilli();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,6 +363,7 @@ class InitSqlPipelineTest {
|
||||
.isEqualTo(expected.getAutorenewPollMessage().getOfyKey());
|
||||
assertThat(actual.getDeletePollMessage().getOfyKey())
|
||||
.isEqualTo(expected.getDeletePollMessage().getOfyKey());
|
||||
assertThat(actual.getUpdateTimestamp()).isEqualTo(expected.getUpdateTimestamp());
|
||||
// TODO(weiminyu): check gracePeriods and transferData when it is easier to do
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user