Skip to content

Commit

Permalink
fix linter error and re-enable e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
canercidam committed Jan 3, 2024
1 parent 821850b commit d051aa6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
skip-pkg-cache: true
skip-build-cache: true
version: v1.52.2
# - name: Prepare for E2E tests
# run: |
# sudo apt-get install wget
# wget https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-amd64.tar.gz
# tar -xvzf kubo_v0.20.0_linux-amd64.tar.gz
# cd kubo
# sudo bash install.sh
# ipfs --version
# - name: Run E2E tests
# run: make e2e
- name: Prepare for E2E tests
run: |
sudo apt-get install wget
wget https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-amd64.tar.gz
tar -xvzf kubo_v0.20.0_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
ipfs --version
- name: Run E2E tests
run: make e2e
5 changes: 4 additions & 1 deletion e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (s *E2ETestSuite) verifyFiles() {
}

func getImageCid() (foundCid string) {
filepath.WalkDir("testdir/cache", func(currPath string, d fs.DirEntry, err error) error {
err := filepath.WalkDir("testdir/cache", func(currPath string, d fs.DirEntry, err error) error {
if len(foundCid) > 0 {
return nil
}
Expand All @@ -186,6 +186,9 @@ func getImageCid() (foundCid string) {
}
return nil
})
if err != nil {
panic(err)
}
return
}

Expand Down

0 comments on commit d051aa6

Please sign in to comment.