summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:43:05 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 12:43:05 +0200
commitfaa4a7a22a1e1022b4a826dd8713cd4a0ff4a37b (patch)
treeb70cd2fb1ad989bc2ee94372dd4dfdff4ee091f7 /tests
parente9c90e1617cc1236788c813f93f9040f333707fd (diff)
Use effective migration descriptor
Diffstat (limited to 'tests')
-rw-r--r--tests/run.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua
index e569cbb..e9c91b1 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -6507,6 +6507,12 @@ test("Direction-changing repeated TILL rebuilds feedback", function()
migration.reason
)
falsy(first.identity == migration.overlay.identity)
+ same(domain.Descriptor.TILL_BACKWARD, migration.overlay.descriptor)
+ local rebuilt = host:highlights()[migration.overlay.identity]
+ same(domain.Descriptor.TILL_BACKWARD, rebuilt.descriptor)
+ same(domain.EndpointPolicy.REGULAR, rebuilt.endpoint_policy)
+ same(domain.Position.new(1, 3), rebuilt.positions[1])
+ same(domain.Position.new(1, 5), rebuilt.positions[2])
same(nil, host:highlights()[first.identity])
same(1, #state.target_overlays)
end)