Skip to content

Commit

Permalink
session: Increase timeout to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
penberg committed Jul 19, 2018
1 parent 52505d1 commit 57e7951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions session.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package gemini

import (
"time"

"github.com/gocql/gocql"
"github.com/google/go-cmp/cmp"

Expand All @@ -14,12 +16,14 @@ type Session struct {

func NewSession(testClusterHost string, oracleClusterHost string) *Session {
testCluster := gocql.NewCluster(testClusterHost)
testCluster.Timeout = 5 * time.Second
testSession, err := testCluster.CreateSession()
if err != nil {
panic(err)
}

oracleCluster := gocql.NewCluster(oracleClusterHost)
oracleCluster.Timeout = 5 * time.Second
oracleSession, err := oracleCluster.CreateSession()
if err != nil {
panic(err)
Expand Down

0 comments on commit 57e7951

Please sign in to comment.