fix: update TaskUnitInput test to match new struct fields
ci / test (push) Successful in 59s

This commit is contained in:
Test
2026-08-26 16:06:10 -07:00
parent 6a87833c7f
commit 978a33377c
3 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -83,12 +83,14 @@ func TestOrchestratorConfig(t *testing.T) {
func TestTaskUnitInput(t *testing.T) {
input := statemachine.TaskUnitInput{
TaskID: "T0.1",
RemoteURL: "https://github.com/example/repo",
TargetRepoPath: "/tmp/repo",
BaseTimeout: 10 * time.Minute,
MaxJudgeRetries: 3,
Milestone: "v1.0",
DryRun: false,
}
assert.Equal(t, "T0.1", input.TaskID)
assert.Equal(t, "https://github.com/example/repo", input.RemoteURL)
assert.Equal(t, "/tmp/repo", input.TargetRepoPath)
assert.Equal(t, 10*time.Minute, input.BaseTimeout)
assert.Equal(t, 3, input.MaxJudgeRetries)
assert.Equal(t, "v1.0", input.Milestone)
assert.Equal(t, false, input.DryRun)
}