Skip to content

Commit

Permalink
travis: fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Sep 28, 2015
1 parent 8a05670 commit 2d37474
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ services:
go:
- 1.3
- 1.4
- tip

install:
- go get gopkg.in/bsm/ratelimit.v1
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
all: testdeps
go test ./... -v=1 -cpu=1,2,4
go test ./... -short -race
go test ./... -test.v -test.cpu=1,2,4
go test ./... -test.short -test.race

test: testdeps
go test ./... -v=1
go test ./... -test.v=1

testdeps: .test/redis/src/redis-server

.PHONY: all test testdeps

.test/redis:
mkdir -p $@
wget -qO- https://github.com/antirez/redis/archive/3.0.3.tar.gz | tar xvz --strip-components=1 -C $@
wget -qO- https://github.com/antirez/redis/archive/unstable.tar.gz | tar xvz --strip-components=1 -C $@

.test/redis/src/redis-server: .test/redis
cd $< && make all
2 changes: 1 addition & 1 deletion commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ var _ = Describe("Commands", func() {

dump := client.Dump("key")
Expect(dump.Err()).NotTo(HaveOccurred())
Expect(dump.Val()).To(Equal("\x00\x05hello\x06\x00\xf5\x9f\xb7\xf6\x90a\x1c\x99"))
Expect(dump.Val()).NotTo(BeEmpty())
})

It("should Exists", func() {
Expand Down

0 comments on commit 2d37474

Please sign in to comment.