@@ -19,14 +19,15 @@ import (
1919
2020 "github.com/sourcenetwork/corekv"
2121 "github.com/sourcenetwork/corekv/memory"
22+ "github.com/sourcenetwork/defradb/internal/db/lock"
2223 "github.com/sourcenetwork/immutable"
2324)
2425
2526func TestNewTxnFrom (t * testing.T ) {
2627 ctx := context .Background ()
2728 rootstore := memory .NewDatastore (ctx )
2829
29- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
30+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
3031
3132 err := txn .Commit ()
3233 require .NoError (t , err )
@@ -36,7 +37,7 @@ func TestOnSuccess(t *testing.T) {
3637 ctx := context .Background ()
3738 rootstore := memory .NewDatastore (ctx )
3839
39- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
40+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
4041
4142 text := "Source"
4243 txn .OnSuccess (func () {
@@ -52,7 +53,7 @@ func TestOnSuccessAsync(t *testing.T) {
5253 ctx := context .Background ()
5354 rootstore := memory .NewDatastore (ctx )
5455
55- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
56+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
5657
5758 var wg sync.WaitGroup
5859 txn .OnSuccessAsync (func () {
@@ -69,7 +70,7 @@ func TestOnError(t *testing.T) {
6970 ctx := context .Background ()
7071 rootstore := memory .NewDatastore (ctx )
7172
72- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
73+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
7374
7475 text := "Source"
7576 txn .OnError (func () {
@@ -89,7 +90,7 @@ func TestOnErrorAsync(t *testing.T) {
8990 ctx := context .Background ()
9091 rootstore := memory .NewDatastore (ctx )
9192
92- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
93+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
9394
9495 var wg sync.WaitGroup
9596 txn .OnErrorAsync (func () {
@@ -109,7 +110,7 @@ func TestOnDiscard(t *testing.T) {
109110 ctx := context .Background ()
110111 rootstore := memory .NewDatastore (ctx )
111112
112- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
113+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
113114
114115 text := "Source"
115116 txn .OnDiscard (func () {
@@ -124,7 +125,7 @@ func TestOnDiscardAsync(t *testing.T) {
124125 ctx := context .Background ()
125126 rootstore := memory .NewDatastore (ctx )
126127
127- txn := NewTxnFrom (rootstore , 0 , false , immutable .None [int ]())
128+ txn := NewTxnFrom (rootstore , lock . NewLockSet (), 0 , false , immutable .None [int ]())
128129
129130 var wg sync.WaitGroup
130131 txn .OnDiscardAsync (func () {
0 commit comments