mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-02 10:05:41 +02:00
test(cmd/server): thread nil invoke gate through RerunIssue call sites (MUL-4525)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -407,7 +407,7 @@ func TestRerunIssueSetsForceFreshSession(t *testing.T) {
|
||||
bus := events.New()
|
||||
taskService := service.NewTaskService(queries, nil, hub, bus)
|
||||
|
||||
task, err := taskService.RerunIssue(ctx, pgtype.UUID{Bytes: parseUUIDBytes(issueID), Valid: true}, pgtype.UUID{}, pgtype.UUID{}, pgtype.UUID{})
|
||||
task, err := taskService.RerunIssue(ctx, pgtype.UUID{Bytes: parseUUIDBytes(issueID), Valid: true}, pgtype.UUID{}, pgtype.UUID{}, pgtype.UUID{}, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("RerunIssue failed: %v", err)
|
||||
}
|
||||
@@ -483,6 +483,7 @@ func TestRerunIssueTargetsSourceTaskAgent(t *testing.T) {
|
||||
pgtype.UUID{Bytes: parseUUIDBytes(sourceTaskID), Valid: true},
|
||||
pgtype.UUID{},
|
||||
pgtype.UUID{},
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("RerunIssue failed: %v", err)
|
||||
@@ -555,6 +556,7 @@ func TestRerunIssueRejectsCrossIssueTask(t *testing.T) {
|
||||
pgtype.UUID{Bytes: parseUUIDBytes(crossTaskID), Valid: true},
|
||||
pgtype.UUID{},
|
||||
pgtype.UUID{},
|
||||
nil,
|
||||
)
|
||||
if err == nil {
|
||||
t.Fatal("expected RerunIssue to reject a source task from a different issue")
|
||||
@@ -619,6 +621,7 @@ func TestRerunIssueInheritsTriggerCommentFromSourceTask(t *testing.T) {
|
||||
pgtype.UUID{Bytes: parseUUIDBytes(sourceTaskID), Valid: true},
|
||||
pgtype.UUID{},
|
||||
pgtype.UUID{},
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("RerunIssue failed: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user