Skip to content

Commit

Permalink
fix: make "ipfs works" test work with go-ipfs v0.12.0
Browse files Browse the repository at this point in the history
This fix works all the way down to go-ipfs 0.4.21, so it should be
acceptable.

fixes #151
  • Loading branch information
Stebalien committed Dec 28, 2021
1 parent 10bb4f2 commit 0adb511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-dist/testnew.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func testFileAdd(tdir, bin string) error {
stump.Error("testfileadd could not create test file: %s", err)
}

c := exec.Command(bin, "add", "-q", "--progress=false", testFile)
c := exec.Command(bin, "add", "--cid-version=1", "--raw-leaves", "--cid-base=base32", "-Q", "--progress=false", testFile)
if runtime.GOOS == "windows" {
c.Env = os.Environ()
}
Expand Down Expand Up @@ -337,7 +337,7 @@ func testRefsList(tdir, bin string) error {
}

hashes := strings.Split(string(out), "\n")
exp := "QmTFJQ68kaArzsqz2Yjg1yMyEA5TXTfNw6d9wSFhxtBxz2"
exp := "bafkreierblbxdq2j667k2oqk4tvinprvgheipfv6ezevlyi4thry774v5e"
var found bool
for _, h := range hashes {
if h == exp {
Expand Down

0 comments on commit 0adb511

Please sign in to comment.