fix: adopt queue-refreshed SaaS config without revision gates

This commit is contained in:
2026-10-09 19:27:20 +08:00
parent c2a7b08eee
commit cd762b52e6
19 changed files with 384 additions and 114 deletions
+5 -1
View File
@@ -71,8 +71,12 @@ func recordingRPCFixture(t *testing.T) (*RecordingServer, *store.Store, context.
t.Fatal(err)
}
now := time.Date(2026, 9, 21, 1, 30, 0, 0, time.UTC)
taskSHA, err := configread.TaskConfigurationSHA256(snapshot.Task)
if err != nil {
t.Fatal(err)
}
if err := database.ReserveExecute(recordingDispatcherID, command.EventID, store.CallReservation{
TrunkID: "trunk-mock", SIPRevision: 8, TaskRevision: 1, CallerID: "BD00000000", DialedCallee: command.Callee, Deadline: now.Add(2 * time.Minute),
TrunkID: "trunk-mock", SIPRevision: 8, TaskRevision: 1, TaskConfigSHA256: taskSHA, CallerID: "BD00000000", DialedCallee: command.Callee, Deadline: now.Add(2 * time.Minute),
}, now); err != nil {
t.Fatal(err)
}