move legacy stuff outside the job

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux
2014-01-13 16:20:05 -08:00
parent aca1270104
commit 16ca6a1c12
6 changed files with 58 additions and 44 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
package engine
import (
"testing"
"bytes"
"encoding/json"
"testing"
)
func TestTableWriteTo(t *testing.T) {
@@ -19,7 +19,7 @@ func TestTableWriteTo(t *testing.T) {
if err := json.Unmarshal(buf.Bytes(), &output); err != nil {
t.Fatal(err)
}
if len(output) != 1 {
if len(output) != 1 {
t.Fatalf("Incorrect output: %v", output)
}
if val, exists := output["foo"]; !exists || val != "bar" {