Skip to content

Commit

Permalink
fix: resolve comment
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
  • Loading branch information
JeyJeyGao committed Dec 27, 2022
1 parent 728d489 commit db9d3b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Run unit tests
run: make test
- name: Run e2e tests
run: |
make e2e
run: make e2e
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
4 changes: 3 additions & 1 deletion test/e2e/internal/notation/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func AddTestKeyPairs(dir string) error {

// create localkeys directory
localKeysDir := filepath.Join(dir, localkeysDirName)
os.MkdirAll(localKeysDir, os.ModePerm)
if err := os.MkdirAll(localKeysDir, os.ModePerm); err != nil {
return err
}
if err := copyFile(NotationE2EKeyPath, filepath.Join(localKeysDir, "e2e.key")); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/internal/notation/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Registry struct {
Password string
}

var TestRegistry = Registry{}
var TestRegistry Registry

type Artifact struct {
*Registry
Expand Down

0 comments on commit db9d3b4

Please sign in to comment.