Skip to content

Commit

Permalink
adjust a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgavlin committed Nov 16, 2021
1 parent 4242eff commit a3060a1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pkg/resource/deploy/deployment_test.go
Expand Up @@ -43,16 +43,5 @@ func TestPendingOperationsDeployment(t *testing.T) {
})

_, err := NewDeployment(&plugin.Context{}, &Target{}, snap, &fixedSource{}, nil, false, nil)
if !assert.Error(t, err) {
t.FailNow()
}

invalidErr, ok := err.(PlanPendingOperationsError)
if !assert.True(t, ok) {
t.FailNow()
}

assert.Len(t, invalidErr.Operations, 1)
assert.Equal(t, resourceB.URN, invalidErr.Operations[0].Resource.URN)
assert.Equal(t, resource.OperationTypeCreating, invalidErr.Operations[0].Type)
assert.NoError(t, err)
}

0 comments on commit a3060a1

Please sign in to comment.