Skip to content

Commit 953d0db

Browse files
committed
modify configuration with build path and fix test error
1 parent 3f2c29e commit 953d0db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
steps:
88
- checkout
99
- run: go test -v -race ./...
10-
- run: go build -race cmd/{{REPO_NAME}}/main.go
10+
- run: go build -race cmd/gopherapi/main.go
1111
build-go_latest:
1212
docker:
1313
- image: circleci/golang:latest
1414
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
1515
steps:
1616
- checkout
1717
- run: go test -v -race ./...
18-
- run: go build -race cmd/{{REPO_NAME}}/main.go
18+
- run: go build -race cmd/gopherapi/main.go
1919
workflows:
2020
version: 2
2121
build_and_test:

pkg/server/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestFetchGophers(t *testing.T) {
4545
expected := len(sample.Gophers)
4646

4747
if len(got) != expected {
48-
t.Errorf("expected %d gophers, got: %d gopher", sample.Gophers, got)
48+
t.Errorf("expected %v gophers, got: %v gopher", sample.Gophers, got)
4949
}
5050
}
5151

0 commit comments

Comments
 (0)