Skip to content

Commit

Permalink
Merge pull request #1364 from abhinavdangeti/travis-update
Browse files Browse the repository at this point in the history
Update .travis.yml to include testing on go version 1.14.x
  • Loading branch information
abhinavdangeti committed Apr 3, 2020
2 parents d339a49 + ca3bfc9 commit e42e714
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -5,6 +5,7 @@ language: go
go:
- "1.12.x"
- "1.13.x"
- "1.14.x"

script:
- go get golang.org/x/tools/cmd/cover
Expand Down
2 changes: 1 addition & 1 deletion geo/geo.go
Expand Up @@ -33,7 +33,7 @@ var minLonRad = minLon * degreesToRadian
var minLatRad = minLat * degreesToRadian
var maxLonRad = maxLon * degreesToRadian
var maxLatRad = maxLat * degreesToRadian
var geoTolerance = 1E-6
var geoTolerance = 1e-6
var lonScale = float64((uint64(0x1)<<GeoBits)-1) / 360.0
var latScale = float64((uint64(0x1)<<GeoBits)-1) / 180.0

Expand Down
2 changes: 1 addition & 1 deletion geo/geo_dist_test.go
Expand Up @@ -113,7 +113,7 @@ func TestHaversinDistance(t *testing.T) {
if math.IsNaN(test.want) && !math.IsNaN(got) {
t.Errorf("expected NaN, got %f", got)
}
if !math.IsNaN(test.want) && math.Abs(got-test.want) > 1E-2 {
if !math.IsNaN(test.want) && math.Abs(got-test.want) > 1e-2 {
t.Errorf("expected %f got %f", test.want, got)
}
}
Expand Down
4 changes: 2 additions & 2 deletions geo/geo_test.go
Expand Up @@ -89,10 +89,10 @@ func TestRectFromPointDistance(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if math.Abs(upperLeftLat-1) > 1E-2 {
if math.Abs(upperLeftLat-1) > 1e-2 {
t.Errorf("expected bounding box upper left lat to be almost 1, got %f", upperLeftLat)
}
if math.Abs(lowerRightLat+1) > 1E-2 {
if math.Abs(lowerRightLat+1) > 1e-2 {
t.Errorf("expected bounding box lower right lat to be almost -1, got %f", lowerRightLat)
}
}
Expand Down
4 changes: 2 additions & 2 deletions geo/sloppy_test.go
Expand Up @@ -21,7 +21,7 @@ import (

func TestCos(t *testing.T) {

cosDelta := 1E-15
cosDelta := 1e-15

tests := []struct {
in float64
Expand Down Expand Up @@ -55,7 +55,7 @@ func TestCos(t *testing.T) {

func TestAsin(t *testing.T) {

asinDelta := 1E-7
asinDelta := 1e-7

tests := []struct {
in float64
Expand Down
2 changes: 1 addition & 1 deletion vendor/manifest
Expand Up @@ -29,7 +29,7 @@
"importpath": "go.etcd.io/bbolt",
"repository": "https://github.com/etcd-io/bbolt",
"vcs": "",
"revision": "7ee3ded59d4835e10f3e7d0f7603c42aa5e83820",
"revision": "68cc10a767ea1c6b9e8dcb9847317ff192d6d974",
"branch": "master",
"notests": true
},
Expand Down

0 comments on commit e42e714

Please sign in to comment.