Update aerospike_test.go

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
This commit is contained in:
Mitul Shah
2025-04-14 20:46:12 +05:30
committed by GitHub
parent 7bdb6140ce
commit b41c6e1c9a

View File

@@ -66,13 +66,11 @@ func newTestStore(t testing.TB) *Storage {
t.Helper()
c, err := startAerospikeContainer(context.Background())
testcontainers.CleanupContainer(t, c)
if err != nil {
t.Fatalf("Failed to start Aerospike container: %v", err)
}
// Cleanup container
testcontainers.CleanupContainer(t, c)
// Extract host and port
host, err := c.Host(context.TODO())
if err != nil {