core: Trap warnings as well as errors on resourceNestedCount test
This commit is contained in:
parent
d41b806789
commit
744727a28a
|
@ -3234,11 +3234,12 @@ func TestContext2Plan_resourceNestedCount(t *testing.T) {
|
||||||
State: s,
|
State: s,
|
||||||
})
|
})
|
||||||
|
|
||||||
_, e := ctx.Validate()
|
w, e := ctx.Validate()
|
||||||
if len(e) > 0 {
|
if len(w) > 0 {
|
||||||
for _, err := range e {
|
t.Fatalf("warnings generated on validate: %#v", w)
|
||||||
t.Errorf("bad: %s", err)
|
|
||||||
}
|
}
|
||||||
|
if len(e) > 0 {
|
||||||
|
t.Fatalf("errors generated on validate: %#v", e)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := ctx.Refresh()
|
_, err := ctx.Refresh()
|
||||||
|
|
Loading…
Reference in New Issue