Skip to content

Commit

Permalink
example_test: lwtLock, add serial consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Dec 3, 2020
1 parent 233aa42 commit 412899a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ func lwtLock(t *testing.T, session gocqlx.Session) {
If(qb.Eq("owner")).
TTLNamed("ttl").
Query(session).
SerialConsistency(gocql.Serial).
BindStruct(lock)

applied, err := q.ExecCASRelease()
Expand All @@ -652,6 +653,7 @@ func lwtLock(t *testing.T, session gocqlx.Session) {
TTLNamed("ttl").
Unique().
Query(session).
SerialConsistency(gocql.Serial).
BindStruct(lock)

applied, err = q.GetCASRelease(&prev)
Expand Down

0 comments on commit 412899a

Please sign in to comment.