Commit 94ae8fd8 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Use latest versions

Fix newly-broken tests
parent 3e0a562f
......@@ -7,7 +7,8 @@ env:
- MYSQL_TEST="true" MONGO_TEST="true"
go:
- 1.7.3
- 1.7.4
- 1.8rc1
- tip
matrix:
......@@ -26,7 +27,7 @@ before_script:
sudo: false
script:
- go build -v ./cmd/cashier ./cmd/cashierd
- go install -v ./cmd/cashier ./cmd/cashierd
- go list ./... |grep -v vendor/ |xargs go test
- gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
- go list ./... |grep -v vendor/ |xargs go vet
......
......@@ -48,7 +48,7 @@ func TestCert(t *testing.T) {
t.Error("Cert key doesn't match public key")
}
if cert.ValidBefore != uint64(r.ValidUntil.Unix()) {
t.Errorf("Invalid validity, expected %d, got %d", r.ValidUntil, cert.ValidBefore)
t.Errorf("Invalid validity, expected %d, got %d", r.ValidUntil.Unix(), cert.ValidBefore)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment