Merge pull request #32 from davidovich/fix-tests-are-not-run

Fix tests are not run
This commit is contained in:
Matthias Loibl 2019-07-12 11:37:53 +02:00 committed by GitHub
commit 7ad4e41347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ install: build
test:
@echo ">> running all tests"
@go test -i $(PKGS)
@go test $(PKGS)
generate: embedmd
@echo ">> generating docs"

View file

@ -21,8 +21,8 @@ import (
)
func TestInsert(t *testing.T) {
deps := []*spec.Dependency{&spec.Dependency{Name: "test1", Version: "latest"}}
dep := &spec.Dependency{Name: "test2", Version: "latest"}
deps := []spec.Dependency{spec.Dependency{Name: "test1", Version: "latest"}}
dep := spec.Dependency{Name: "test2", Version: "latest"}
res, err := insertDependency(deps, dep)
if err != nil {