fix: initialize shadow snapshot state
This commit is contained in:
@@ -234,6 +234,16 @@ class ShadowSqlServerMigrationScriptTest {
|
||||
"truncate table alg.decision_log");
|
||||
}
|
||||
|
||||
@Test
|
||||
void cleanInstallSeedsAuthoritativeWarehouseAsInitializing() throws IOException {
|
||||
String install = normalize(resource("db/sqlserver/install-shadow.sql"));
|
||||
|
||||
assertThat(install).contains(
|
||||
"insert into alg.shadow_snapshot_state "
|
||||
+ "(warehouse_id, snapshot_generation, snapshot_status) "
|
||||
+ "values ('01', 0, 'initializing')");
|
||||
}
|
||||
|
||||
@Test
|
||||
void claimUsesOnlyPackageHeartbeatAndA120SecondStaleThreshold() throws IOException {
|
||||
String install = normalize(resource("db/sqlserver/install-shadow.sql"));
|
||||
|
||||
Reference in New Issue
Block a user