diff options
| author | Eric Biggers <ebiggers@google.com> | 2022-01-18 21:03:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 21:03:51 -0800 |
| commit | 7813af71eba05166e0c2f7056e094ca8756fbe8e (patch) | |
| tree | 35560cae2edcc7ad7206412c2df9d98b2eef6a65 /actions/policy_test.go | |
| parent | 6ec8ee00398c435aba7cbb68f8246c1772e12908 (diff) | |
| parent | 6ebd5a54eae2dfb16b66da649e75848fe6030b7f (diff) | |
Merge pull request #338 from google/remove-protector-from-policy
cmd/fscrypt: don't load protector in remove-protector-from-policy
Diffstat (limited to 'actions/policy_test.go')
| -rw-r--r-- | actions/policy_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/policy_test.go b/actions/policy_test.go index 11c9c3e..07943b8 100644 --- a/actions/policy_test.go +++ b/actions/policy_test.go @@ -114,7 +114,7 @@ func TestPolicyGoodRemoveProtector(t *testing.T) { t.Fatal(err) } - err = pol.RemoveProtector(pro1) + err = pol.RemoveProtector(pro1.Descriptor()) if err != nil { t.Error(err) } @@ -135,11 +135,11 @@ func TestPolicyBadRemoveProtector(t *testing.T) { } defer cleanupProtector(pro2) - if pol.RemoveProtector(pro2) == nil { + if pol.RemoveProtector(pro2.Descriptor()) == nil { t.Error("we should not be able to remove a protector we did not add") } - if pol.RemoveProtector(pro1) == nil { + if pol.RemoveProtector(pro1.Descriptor()) == nil { t.Error("we should not be able to remove all the protectors from a policy") } } |