This commit is contained in:
+6
-4
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user