core: Better failure output for TestContext2Apply_moduleDestroyOrder

This commit is contained in:
Martin Atkins 2018-06-01 16:29:40 -07:00
parent bab9f7ce09
commit 91def7b6f6
1 changed files with 2 additions and 2 deletions

View File

@ -2529,14 +2529,14 @@ func TestContext2Apply_moduleDestroyOrder(t *testing.T) {
expected := []string{"b", "a"}
if !reflect.DeepEqual(order, expected) {
t.Fatalf("bad: %#v", order)
t.Errorf("wrong order\ngot: %#v\nwant: %#v", order, expected)
}
{
actual := strings.TrimSpace(state.String())
expected := strings.TrimSpace(testTerraformApplyModuleDestroyOrderStr)
if actual != expected {
t.Fatalf("bad: \n%s", actual)
t.Errorf("wrong final state\n\ngot:\n%s\n\nwant:\n%s", actual, expected)
}
}
}