Adjust AMI output to the Lorax one

This commit is contained in:
Martin Sehnoutka 2019-10-22 13:50:07 +02:00 committed by Tom Gundersen
parent 96d401b212
commit 4ef4112a12
3 changed files with 39 additions and 7 deletions

View file

@ -149,7 +149,10 @@ func TestBlueprint_ToPipeline(t *testing.T) {
}
if !tt.wantErr {
if !reflect.DeepEqual(got, &want) {
t.Errorf("Blueprint.ToPipeline() = %v, want %v", got, &want)
// Without this the "difference" is just a list of pointers.
gotJson, _ := json.Marshal(got)
fileJson, _ := json.Marshal(want)
t.Errorf("Blueprint.ToPipeline() =\n%v,\nwant =\n%v", string(gotJson), string(fileJson))
}
}
})