Skip to content

Commit 412899a

Browse files
committed
example_test: lwtLock, add serial consistency
1 parent 233aa42 commit 412899a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: example_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ func lwtLock(t *testing.T, session gocqlx.Session) {
631631
If(qb.Eq("owner")).
632632
TTLNamed("ttl").
633633
Query(session).
634+
SerialConsistency(gocql.Serial).
634635
BindStruct(lock)
635636

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

657659
applied, err = q.GetCASRelease(&prev)

0 commit comments

Comments
 (0)