Skip to content

Commit 17f17c2

Browse files
authored
Merge branch 'main' into bugfix/legacy-sync-timeout
2 parents 325af92 + 3822c22 commit 17f17c2

File tree

13 files changed

+46
-35
lines changed

13 files changed

+46
-35
lines changed

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ replace github.com/in-toto/in-toto-golang => github.com/in-toto/in-toto-golang v
66

77
require (
88
github.com/IBM/sarama v1.45.1
9-
github.com/aerospike/aerospike-client-go/v8 v8.2.0
9+
github.com/aerospike/aerospike-client-go/v8 v8.4.2
1010
github.com/aws/aws-sdk-go-v2 v1.36.3
1111
github.com/aws/aws-sdk-go-v2/config v1.29.9
1212
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.66
1313
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2
1414
github.com/bitcoin-sv/bdk/module/gobdk v1.2.0-beta11
1515
github.com/bitcoin-sv/go-sdk v1.1.21
16-
github.com/bitcoin-sv/testcontainers-aerospike-go v0.2.2
1716
github.com/bsv-blockchain/go-bt/v2 v2.5.1
1817
github.com/bsv-blockchain/go-chaincfg v1.4.0
1918
github.com/bsv-blockchain/go-subtree v1.1.2
19+
github.com/bsv-blockchain/testcontainers-aerospike-go v0.3.2
2020
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd
2121
github.com/btcsuite/goleveldb v1.0.0
2222
github.com/centrifugal/centrifuge v0.33.2
@@ -128,7 +128,6 @@ require (
128128
github.com/moby/sys/userns v0.1.0 // indirect
129129
github.com/ncruces/go-strftime v0.1.9 // indirect
130130
github.com/nxadm/tail v1.4.11 // indirect
131-
github.com/onsi/gomega v1.36.3 // indirect
132131
github.com/opentracing/opentracing-go v1.2.0 // indirect
133132
github.com/pion/datachannel v1.5.10 // indirect
134133
github.com/pion/dtls/v2 v2.2.12 // indirect
@@ -390,8 +389,8 @@ require (
390389
github.com/subosito/gotenv v1.6.0 // indirect
391390
github.com/theupdateframework/notary v0.7.0 // indirect
392391
github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375 // indirect
393-
github.com/tklauser/go-sysconf v0.3.15 // indirect
394-
github.com/tklauser/numcpus v0.10.0 // indirect
392+
github.com/tklauser/go-sysconf v0.3.16 // indirect
393+
github.com/tklauser/numcpus v0.11.0 // indirect
395394
github.com/tonistiigi/fsutil v0.0.0-20250605211040-586307ad452f // indirect
396395
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
397396
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab // indirect

go.sum

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ github.com/Shopify/logrus-bugsnag v0.0.0-20170309145241-6dbc35f2c30d h1:hi6J4K6D
6262
github.com/Shopify/logrus-bugsnag v0.0.0-20170309145241-6dbc35f2c30d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ=
6363
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=
6464
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
65-
github.com/aerospike/aerospike-client-go/v8 v8.2.0 h1:6w3X+w5LnmBvQ1X1m4zJH40IWgxZxfMfGhEZxuQlCYo=
66-
github.com/aerospike/aerospike-client-go/v8 v8.2.0/go.mod h1:JmVOIqacquBd0ZjlZ5Dz6bRMSC3LrZCCNojZ/9NS4R0=
65+
github.com/aerospike/aerospike-client-go/v8 v8.4.2 h1:j6D+XCWn2ZkFU6o64BGzy6cYQksSnKspMiUi4PRbmkQ=
66+
github.com/aerospike/aerospike-client-go/v8 v8.4.2/go.mod h1:F3qwGJUMWOtqZha7O2VglfIDatH3Rj8wYhmI7bkHOfU=
6767
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
6868
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
6969
github.com/anchore/go-struct-converter v0.0.0-20221118182256-c68fdcfa2092 h1:aM1rlcoLz8y5B2r4tTLMiVTrMtpfY0O8EScKJxaSaEc=
@@ -126,8 +126,6 @@ github.com/bitcoin-sv/bdk/module/gobdk v1.2.0-beta11 h1:jX7vcgXdW6wkkgmJnTE5Mdfp
126126
github.com/bitcoin-sv/bdk/module/gobdk v1.2.0-beta11/go.mod h1:S+KGraBq33TyQJcOY1onouvr5l+c7dkoYM/PF7+OSU8=
127127
github.com/bitcoin-sv/go-sdk v1.1.21 h1:FzpjGohFuxC3KJSvdfk1GAXtUykm6tPFo3mf7+xtj9A=
128128
github.com/bitcoin-sv/go-sdk v1.1.21/go.mod h1:AtXmBimazAxAn9Kwp/eAdm6iRrj07c8L0IQs1q5EsMk=
129-
github.com/bitcoin-sv/testcontainers-aerospike-go v0.2.2 h1:a5/9qZ0zE9GhMcLKEILBZPWACXfUvGAQf3ReBMxEzyI=
130-
github.com/bitcoin-sv/testcontainers-aerospike-go v0.2.2/go.mod h1:8UuDrZGvK4+Y3VFdY6Mj19gVbOnIAFh2Q8lvC9JOhH8=
131129
github.com/bitcoinschema/go-bitcoin v0.3.20 h1:jWKT7ePYm4dPaIR2aIAVL8BwdsYtuG/4B87l1+KZyWs=
132130
github.com/bitcoinschema/go-bitcoin v0.3.20/go.mod h1:HyyMGUTtGE1qOgFJzCmvgsf3y55IfxJ+qLbwRm4Ski4=
133131
github.com/bitcoinsv/bsvd v0.0.0-20190609155523-4c29707f7173 h1:2yTIV9u7H0BhRDGXH5xrAwAz7XibWJtX2dNezMeNsUo=
@@ -164,6 +162,8 @@ github.com/bsv-blockchain/go-tx-map v1.2.1 h1:uzKryYn4uMCR3ko6N71TyUrKfAnRvwG5Md
164162
github.com/bsv-blockchain/go-tx-map v1.2.1/go.mod h1:4NsZBCM6bFNwYEc7J4C6jiNdm5aY/rtRVXqpG7PgbX4=
165163
github.com/bsv-blockchain/go-wire v1.0.6 h1:rMVASfuXtrZB1ZaZEl+/tvmXfdPMf4KY8Pew7/VeyQ0=
166164
github.com/bsv-blockchain/go-wire v1.0.6/go.mod h1:Jp6ekSmh/KZL1Gm/OPmbyMspNsficSgjXxlJ6bFD0Hs=
165+
github.com/bsv-blockchain/testcontainers-aerospike-go v0.3.2 h1:wuQkh6oGYkHDEPDFA+MDsgYrXdibzrwZxx277ZBevZ4=
166+
github.com/bsv-blockchain/testcontainers-aerospike-go v0.3.2/go.mod h1:KlSRfAvk+qsKyCXeF8qEAijNC4H8zhWOnmNkP2wIwQk=
167167
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw=
168168
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
169169
github.com/btcsuite/goleveldb v1.0.0 h1:Tvd0BfvqX9o823q1j2UZ/epQo09eJh6dTcRp79ilIN4=
@@ -778,13 +778,13 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
778778
github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
779779
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
780780
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
781-
github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus=
782-
github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8=
781+
github.com/onsi/ginkgo/v2 v2.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns=
782+
github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
783783
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
784784
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
785785
github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA=
786-
github.com/onsi/gomega v1.36.3 h1:hID7cr8t3Wp26+cYnfcjR6HpJ00fdogN6dqZ1t6IylU=
787-
github.com/onsi/gomega v1.36.3/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0=
786+
github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
787+
github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=
788788
github.com/opencontainers/go-digest v0.0.0-20170106003457-a6d0ee40d420/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
789789
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
790790
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
@@ -1049,10 +1049,10 @@ github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375 h1:QB54BJwA6x8
10491049
github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375/go.mod h1:xRroudyp5iVtxKqZCrA6n2TLFRBf8bmnjr1UD4x+z7g=
10501050
github.com/tinylib/msgp v1.1.8 h1:FCXC1xanKO4I8plpHGH2P7koL/RzZs12l/+r7vakfm0=
10511051
github.com/tinylib/msgp v1.1.8/go.mod h1:qkpG+2ldGg4xRFmx+jfTvZPxfGFhi64BcnL9vkCm/Tw=
1052-
github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8Ol49K4=
1053-
github.com/tklauser/go-sysconf v0.3.15/go.mod h1:Dmjwr6tYFIseJw7a3dRLJfsHAMXZ3nEnL/aZY+0IuI4=
1054-
github.com/tklauser/numcpus v0.10.0 h1:18njr6LDBk1zuna922MgdjQuJFjrdppsZG60sHGfjso=
1055-
github.com/tklauser/numcpus v0.10.0/go.mod h1:BiTKazU708GQTYF4mB+cmlpT2Is1gLk7XVuEeem8LsQ=
1052+
github.com/tklauser/go-sysconf v0.3.16 h1:frioLaCQSsF5Cy1jgRBrzr6t502KIIwQ0MArYICU0nA=
1053+
github.com/tklauser/go-sysconf v0.3.16/go.mod h1:/qNL9xxDhc7tx3HSRsLWNnuzbVfh3e7gh/BmM179nYI=
1054+
github.com/tklauser/numcpus v0.11.0 h1:nSTwhKH5e1dMNsCdVBukSZrURJRoHbSEQjdEbY+9RXw=
1055+
github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ=
10561056
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323 h1:r0p7fK56l8WPequOaR3i9LBqfPtEdXIQbUTzT55iqT4=
10571057
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323/go.mod h1:3Iuxbr0P7D3zUzBMAZB+ois3h/et0shEz0qApgHYGpY=
10581058
github.com/tonistiigi/fsutil v0.0.0-20250605211040-586307ad452f h1:MoxeMfHAe5Qj/ySSBfL8A7l1V+hxuluj8owsIEEZipI=
@@ -1156,8 +1156,6 @@ go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOV
11561156
go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE=
11571157
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
11581158
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
1159-
go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
1160-
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
11611159
go.uber.org/dig v1.19.0 h1:BACLhebsYdpQ7IROQ1AGPjrXcP5dF80U3gKoFzbaq/4=
11621160
go.uber.org/dig v1.19.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE=
11631161
go.uber.org/fx v1.24.0 h1:wE8mruvpg2kiiL1Vqd0CC+tr0/24XIB10Iwp2lLWzkg=

services/validator/Validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
"testing"
3434
"time"
3535

36-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
3736
bt "github.com/bsv-blockchain/go-bt/v2"
3837
"github.com/bsv-blockchain/go-bt/v2/bscript"
3938
"github.com/bsv-blockchain/go-bt/v2/chainhash"
@@ -57,6 +56,7 @@ import (
5756
kafkamessage "github.com/bsv-blockchain/teranode/util/kafka/kafka_message"
5857
"github.com/bsv-blockchain/teranode/util/test"
5958
"github.com/bsv-blockchain/teranode/util/tracing"
59+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
6060
"github.com/ordishs/gocore"
6161
"github.com/stretchr/testify/assert"
6262
"github.com/stretchr/testify/mock"

stores/utxo/aerospike/aerospike_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ import (
6565
"time"
6666

6767
"github.com/aerospike/aerospike-client-go/v8"
68-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
6968
"github.com/bsv-blockchain/go-bt/v2"
7069
"github.com/bsv-blockchain/go-bt/v2/chainhash"
7170
"github.com/bsv-blockchain/teranode/stores/utxo"
7271
"github.com/bsv-blockchain/teranode/stores/utxo/fields"
7372
"github.com/bsv-blockchain/teranode/ulogger"
7473
"github.com/bsv-blockchain/teranode/util/test"
7574
"github.com/bsv-blockchain/teranode/util/uaerospike"
75+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
7676
"github.com/stretchr/testify/assert"
7777
"github.com/stretchr/testify/require"
7878
)

stores/utxo/aerospike/container_helper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"testing"
99

1010
"github.com/aerospike/aerospike-client-go/v8"
11-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
1211
"github.com/bsv-blockchain/go-bt/v2"
1312
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1413
"github.com/bsv-blockchain/teranode/errors"
@@ -22,6 +21,7 @@ import (
2221
"github.com/bsv-blockchain/teranode/util"
2322
"github.com/bsv-blockchain/teranode/util/test"
2423
"github.com/bsv-blockchain/teranode/util/uaerospike"
24+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
2525
"github.com/stretchr/testify/require"
2626
"github.com/testcontainers/testcontainers-go"
2727
)
@@ -114,7 +114,7 @@ func initAerospike(t *testing.T, settings *settings.Settings, logger ulogger.Log
114114
err = errors.NewError("container startup panic: %v", r)
115115
}
116116
}()
117-
c, e := aeroTest.RunContainer(ctx)
117+
c, e := aeroTest.RunContainer(ctx, aeroTest.WithTTLSupport(aerospikeNamespace))
118118
if e != nil {
119119
err = e
120120
return

stores/utxo/aerospike/create.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ import (
8282
var placeholderKey *aerospike.Key
8383

8484
// LockRecordIndex is a special index value for lock records
85-
// Uses max uint32 to avoid conflict with actual sub-records (0, 1, 2, ...)
86-
const LockRecordIndex = uint32(0xFFFFFFFF)
85+
// Uses high uint32 values to avoid conflict with actual sub-records (0, 1, 2, ...)
86+
// Version history:
87+
// - v1: 0xFFFFFFFF (had TTL bug - locks never expired)
88+
// - v2: 0xFFFFFFFE (TTL fix applied)
89+
const LockRecordIndex = uint32(0xFFFFFFFE)
8790

8891
// LockRecordBaseTTL is the minimum time-to-live for lock records in seconds
8992
const LockRecordBaseTTL = uint32(30)
@@ -1008,7 +1011,7 @@ func (s *Store) acquireLock(txHash *chainhash.Hash, numRecords int) (*aerospike.
10081011

10091012
lockTTL := calculateLockTTL(numRecords)
10101013

1011-
lockPolicy := util.GetAerospikeWritePolicy(s.settings, lockTTL)
1014+
lockPolicy := util.GetAerospikeWritePolicy(s.settings, 0, util.WithExpiration(lockTTL))
10121015
lockPolicy.RecordExistsAction = aerospike.CREATE_ONLY
10131016

10141017
hostname, _ := os.Hostname()

stores/utxo/aerospike/index_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"time"
77

88
"github.com/aerospike/aerospike-client-go/v8"
9-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
109
"github.com/bsv-blockchain/teranode/stores/utxo/aerospike/pruner"
1110
"github.com/bsv-blockchain/teranode/stores/utxo/fields"
1211
"github.com/bsv-blockchain/teranode/ulogger"
1312
"github.com/bsv-blockchain/teranode/util/uaerospike"
13+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)

stores/utxo/aerospike/pruner/external_pruning_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"testing"
66

77
"github.com/aerospike/aerospike-client-go/v8"
8-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
98
"github.com/bsv-blockchain/go-bt/v2"
109
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1110
"github.com/bsv-blockchain/teranode/pkg/fileformat"
@@ -14,6 +13,7 @@ import (
1413
"github.com/bsv-blockchain/teranode/stores/utxo/fields"
1514
"github.com/bsv-blockchain/teranode/ulogger"
1615
"github.com/bsv-blockchain/teranode/util/uaerospike"
16+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
1717
"github.com/stretchr/testify/assert"
1818
"github.com/stretchr/testify/require"
1919
)

stores/utxo/aerospike/pruner/pruner_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"time"
77

88
"github.com/aerospike/aerospike-client-go/v8"
9-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
109
"github.com/bsv-blockchain/go-bt/v2"
1110
"github.com/bsv-blockchain/go-bt/v2/chainhash"
1211
"github.com/bsv-blockchain/teranode/settings"
@@ -15,6 +14,7 @@ import (
1514
"github.com/bsv-blockchain/teranode/stores/utxo/fields"
1615
"github.com/bsv-blockchain/teranode/ulogger"
1716
"github.com/bsv-blockchain/teranode/util/uaerospike"
17+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
1818
"github.com/stretchr/testify/assert"
1919
"github.com/stretchr/testify/require"
2020
)

test/longtest/stores/utxo/aerospike/aerospike8_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66

77
"github.com/aerospike/aerospike-client-go/v8"
8-
aeroTest "github.com/bitcoin-sv/testcontainers-aerospike-go"
98
"github.com/bsv-blockchain/teranode/errors"
9+
aeroTest "github.com/bsv-blockchain/testcontainers-aerospike-go"
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212
)
@@ -16,7 +16,7 @@ func TestAerospike8TransactionSupport(t *testing.T) {
1616

1717
ctx := context.Background()
1818

19-
container, err := aeroTest.RunContainer(ctx, aeroTest.WithImage("aerospike/aerospike-server:8.0"))
19+
container, err := aeroTest.RunContainer(ctx, aeroTest.WithImage("aerospike/aerospike-server:8.0"), aeroTest.WithTTLSupport("test"))
2020
require.NoError(t, err)
2121

2222
t.Cleanup(func() {

0 commit comments

Comments
 (0)