connect
# This is just a sanity check
expect attachdb attached: 1
attachdb test.tdb false
# This is just a sanity check
expect readrecordlock lock 1: data ''
readrecordlock 1 testkey
writerecord 1 1 test-contents
releaselock 1 1

expect readrecordlock lock 2: data 'test-contents'
readrecordlock 1 testkey
releaselock 1 2
