Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

[DO NOT MERGE] Test CI #249

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:
language: go

go:
- 1.13.x
- 1.16.x

services:
- docker
Expand All @@ -18,10 +18,10 @@ env:
- BUILD_DEPTYPE=gomod

before_install:
- docker pull ipfs/go-ipfs:master
- (cd /tmp && go install github.com/ipfs/go-ipfs/cmd/ipfs@fd6676f4afe43324629ab1a618ba1169fe2c3c2a)
- mkdir /tmp/ipfs && chmod 0777 /tmp/ipfs
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master "daemon" "--enable-namesys-pubsub"

- ipfs init
- (ipfs daemon --enable-namesys-pubsub &)
install:
- go mod download

Expand Down
4 changes: 2 additions & 2 deletions options/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type DagPutOption func(opts *DagPutSettings) error
// DagPutOptions applies the given options to a DagPutSettings instance.
func DagPutOptions(opts ...DagPutOption) (*DagPutSettings, error) {
options := &DagPutSettings{
InputEnc: "json",
Kind: "cbor",
InputEnc: "dag-json",
Kind: "dag-cbor",
Pin: "false",
Hash: "sha2-256",
}
Expand Down
2 changes: 1 addition & 1 deletion shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func TestDagPut(t *testing.T) {
is := is.New(t)
s := NewShell(shellUrl)

c, err := s.DagPut(`{"x": "abc","y":"def"}`, "json", "cbor")
c, err := s.DagPut(`{"x": "abc","y":"def"}`, "dag-json", "dag-cbor")
is.Nil(err)
is.Equal(c, "bafyreidrm3r2k6vlxqp2fk47sboeycf7apddib47w7cyagrajtpaxxl2pi")
}
Expand Down