From a876a854b2ea7aa438e2013cf5ba8a17ec9cf90d Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 16 Nov 2021 21:57:36 +0100 Subject: [PATCH] chore: use updated go-ipfs --- .github/actions/go-test-setup/action.yml | 7 +++++-- shell_test.go | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/actions/go-test-setup/action.yml b/.github/actions/go-test-setup/action.yml index cc5b02c95..479465286 100644 --- a/.github/actions/go-test-setup/action.yml +++ b/.github/actions/go-test-setup/action.yml @@ -6,10 +6,13 @@ runs: steps: - name: Install go-ipfs shell: bash - run: (cd /tmp && go install github.com/ipfs/go-ipfs/cmd/ipfs@master) + run: | + cd /tmp && git clone https://github.com/coryschwartz/go-ipfs.git + cd go-ipfs && git checkout 153697d524f449ee9bec97245b0fcd7ebc2e8170 + make install - name: Initialize go-ipfs shell: bash run: (ipfs init) - name: Run go-ipfs shell: bash - run: (ipfs daemon --enable-pubsub-experiment &) \ No newline at end of file + run: (ipfs daemon --enable-pubsub-experiment &) diff --git a/shell_test.go b/shell_test.go index d0c24b6af..9d67f5a9d 100644 --- a/shell_test.go +++ b/shell_test.go @@ -361,9 +361,9 @@ func TestPubSub(t *testing.T) { s := NewShell(shellUrl) var ( - topic = fmt.Sprintf("test\n topic\r\t with unsafe bytes") - payload1 = fmt.Sprintf("Hello\r\nWorld\t!") - payload2 = fmt.Sprintf("Hallo\r\nWelt\t!!11oneonÄ™") + topic = "test\n topic\r\t with unsafe bytes" + payload1 = "Hello\r\nWorld\t!" + payload2 = "Hallo\r\nWelt\t!!11oneonÄ™" sub *PubSubSubscription err error