mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
command/e2etest: fix TestPrimarySeparatePlan test
In 6712192724
we stopped counting data
source destroys in the destroy tally since they are an implementation
detail.
This caused this test to start failing, though since the new behavior is
correct here we just update the test to match.
This commit is contained in:
@@ -109,8 +109,8 @@ func TestPrimarySeparatePlan(t *testing.T) {
|
||||
t.Fatalf("unexpected destroy error: %s\nstderr:\n%s", err, stderr)
|
||||
}
|
||||
|
||||
if !strings.Contains(stdout, "Resources: 2 destroyed") {
|
||||
t.Errorf("incorrect destroy tally; want 2 destroyed:\n%s", stdout)
|
||||
if !strings.Contains(stdout, "Resources: 1 destroyed") {
|
||||
t.Errorf("incorrect destroy tally; want 1 destroyed:\n%s", stdout)
|
||||
}
|
||||
|
||||
state, err = tf.LocalState()
|
||||
|
Reference in New Issue
Block a user