mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Fixing the api tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -26,6 +26,10 @@ func testJob() *Job {
|
||||
MemoryMB: 256,
|
||||
DiskMB: 25,
|
||||
IOPS: 10,
|
||||
}).
|
||||
SetLogConfig(&LogConfig{
|
||||
MaxFiles: 10,
|
||||
MaxFileSizeMB: 10,
|
||||
})
|
||||
|
||||
group := NewTaskGroup("group1", 1).
|
||||
|
||||
Reference in New Issue
Block a user