Skip to content

Commit

Permalink
Merge pull request apache#618 from Zariel/fix-test-race
Browse files Browse the repository at this point in the history
fix test race creating session
  • Loading branch information
Zariel committed Jan 31, 2016
2 parents 3c137a7 + ae9f9b9 commit 46dc090
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cassandra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ func TestCAS(t *testing.T) {
t.Skip("lightweight transactions not supported. Please use Cassandra >= 2.0")
}

session := createSession(t)
cluster := createCluster()
cluster.SerialConsistency = LocalSerial
session := createSessionFromCluster(cluster, t)
defer session.Close()
session.cfg.SerialConsistency = LocalSerial

if err := createTable(session, `CREATE TABLE gocql_test.cas_table (
title varchar,
Expand Down

0 comments on commit 46dc090

Please sign in to comment.