update titan, other deps and minor changes

This commit is contained in:
Pedro Nasser
2016-08-24 16:11:21 -03:00
parent 08267e6475
commit 6a2e9b29be
6 changed files with 98 additions and 72 deletions

View File

@@ -30,12 +30,14 @@ func TestRunnerHello(t *testing.T) {
} {
var stdout, stderr bytes.Buffer
cfg := &Config{
ID: fmt.Sprintf("task-hello-%d-%d", i, time.Now().Unix()),
Route: test.route,
ID: fmt.Sprintf("hello-%d-%d", i, time.Now().Unix()),
Image: test.route.Image,
Timeout: 5 * time.Second,
Payload: test.payload,
Stdout: &stdout,
Stderr: &stderr,
Env: map[string]string{
"PAYLOAD": test.payload,
},
Stdout: &stdout,
Stderr: &stderr,
}
result, err := runner.Run(ctx, cfg)
@@ -77,12 +79,14 @@ func TestRunnerError(t *testing.T) {
} {
var stdout, stderr bytes.Buffer
cfg := &Config{
ID: fmt.Sprintf("task-err-%d-%d", i, time.Now().Unix()),
Route: test.route,
ID: fmt.Sprintf("err-%d-%d", i, time.Now().Unix()),
Image: test.route.Image,
Timeout: 5 * time.Second,
Payload: test.payload,
Stdout: &stdout,
Stderr: &stderr,
Env: map[string]string{
"PAYLOAD": test.payload,
},
Stdout: &stdout,
Stderr: &stderr,
}
result, err := runner.Run(ctx, cfg)