Skip to content

Commit

Permalink
Fix security tests
Browse files Browse the repository at this point in the history
They try to read testdata/testdata/... instead of testdata/... before
this change.
  • Loading branch information
howardjohn committed Apr 16, 2019
1 parent 6b2efef commit 68cb7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/util/policy/policy.go
Expand Up @@ -38,7 +38,7 @@ type TestPolicy struct {

func (p TestPolicy) TearDown() {
scopes.CI.Infof("Tearing down policy %q.", p.fileName)
if err := p.env.Delete(p.namespace, path.Join(testDataDir, p.fileName)); err != nil {
if err := p.env.Delete(p.namespace, p.fileName); err != nil {
p.t.Fatalf("Cannot delete %q from namespace %q: %v", p.fileName, p.namespace, err)
}
}
Expand Down

0 comments on commit 68cb7ef

Please sign in to comment.