Skip to content

Commit e7fb32e

Browse files
rcohenmabriangustafson
authored andcommitted
fixing backend test. Test checked for recreation of the resource but none of the properties updated in the test were ForceNew
1 parent e703054 commit e7fb32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/load_balancer_backend_resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ func (s *ResourceLoadBalancerBackendTestSuite) TestAccResourceLoadBalancerBacken
186186
resource.TestCheckResourceAttr(s.ResourceName, "state", string(loadbalancer.WorkRequestLifecycleStateSucceeded)),
187187
func(ts *terraform.State) (err error) {
188188
res2, err = fromInstanceState(ts, s.ResourceName, "name")
189-
if res == res2 {
190-
return fmt.Errorf("new resource expected to be created but was not")
189+
if res != res2 {
190+
return fmt.Errorf("resource was unexpectedly recreated while updating updatable properties")
191191
}
192192
return err
193193
},

0 commit comments

Comments
 (0)