Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Jan 12, 2020
1 parent f527135 commit 470cebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- grip server --rpc-port 18202 --http-port 18201 --config ./test/mongo.yml &
- sleep 5
- make test-conformance
- go test ./test -config mongo-core-processor.yml
- go test ./test -config mongo.yml
env:
- n=mongodb
- script:
Expand Down
3 changes: 2 additions & 1 deletion mongo/graphdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func NewGraphDB(conf Config) (gdbi.GraphDB, error) {
return nil, err
}

ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
err = client.Connect(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit 470cebe

Please sign in to comment.