From 9413f0895943ddba6fa9eb5b6ef7aa94cb5cec13 Mon Sep 17 00:00:00 2001 From: Kyle Maas Date: Fri, 23 Dec 2022 02:09:53 +0000 Subject: [PATCH 1/2] Re-enable TestSpec --- private/box2/spec_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/private/box2/spec_test.go b/private/box2/spec_test.go index 45f1521b..7c9b0a7a 100644 --- a/private/box2/spec_test.go +++ b/private/box2/spec_test.go @@ -14,7 +14,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ssbc/go-ssb/internal/testutils" ) func seq(start, end int) []byte { @@ -26,10 +25,6 @@ func seq(start, end int) []byte { } func TestSpec(t *testing.T) { - if testutils.SkipOnCI(t) { - return - } - dir, err := os.Open(filepath.Join("spec", "vectors")) if !assert.NoError(t, err, "open vectors dir") { t.Log("suggestion: run 'git clone https://github.com/ssbc/envelope-spec spec'") From 2b8dae7328f1118392de71bd74b4c5cf95bbf840 Mon Sep 17 00:00:00 2001 From: Kyle Maas Date: Fri, 23 Dec 2022 02:24:23 +0000 Subject: [PATCH 2/2] Make the Makefile download the necessary dependency for TestSpec --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 545b5ecc..34eaf244 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,9 @@ endif .PHONY: test test: + test -d private/box2/spec || git clone https://github.com/ssbc/envelope-spec private/box2/spec $(foreach pkg, $(PKGS), echo -en "\n $(pkg)\r"; LIBRARIAN_WRITEALL=0 go test $(TESTFLAGS) $(pkg) || exit 1;) + rm -rf private/box2/spec .PHONY: racetest racetest: