Fixing the api tests

This commit is contained in:
Diptanu Choudhury
2016-02-10 13:36:47 -08:00
parent ffd2bc59a1
commit adf86c2f78
2 changed files with 10 additions and 0 deletions

View File

@@ -133,6 +133,12 @@ func (t *Task) Constrain(c *Constraint) *Task {
return t
}
// SetLogConfig sets a log config to a task
func (t *Task) SetLogConfig(l *LogConfig) *Task {
t.LogConfig = l
return t
}
// TaskState tracks the current state of a task and events that caused state
// transistions.
type TaskState struct {

View File

@@ -26,6 +26,10 @@ func testJob() *Job {
MemoryMB: 256,
DiskMB: 25,
IOPS: 10,
}).
SetLogConfig(&LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
})
group := NewTaskGroup("group1", 1).