Skip to content

Commit

Permalink
Merge pull request #276 from KyleMaas/fix-test-spec
Browse files Browse the repository at this point in the history
Re-enable TestSpec
  • Loading branch information
decentral1se authored Dec 28, 2022
2 parents 3ce06b7 + 2b8dae7 commit 8a15e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions private/box2/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'")
Expand Down

0 comments on commit 8a15e3d

Please sign in to comment.