Skip to content

Commit b86a6f0

Browse files
committed
fix env.Cleanup method after split TestEmbedded to TestEmbeddedXXX
Signed-off-by: Slach <[email protected]>
1 parent 62a5d64 commit b86a6f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,11 @@ func NewTestEnvironment(t *testing.T) (*TestEnvironment, *require.Assertions) {
505505
func (env *TestEnvironment) Cleanup(t *testing.T, r *require.Assertions) {
506506
env.ch.Close()
507507

508-
if t.Name() == "TestS3" || t.Name() == "TestEmbedded" {
508+
if t.Name() == "TestS3" || t.Name() == "TestEmbeddedS3" {
509509
env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/disk_s3")
510510
}
511511

512-
if t.Name() == "TestRBAC" || t.Name() == "TestConfigs" || t.Name() == "TestEmbedded" {
512+
if t.Name() == "TestRBAC" || t.Name() == "TestConfigs" || strings.HasPrefix(t.Name(), "TestEmbedded") {
513513
env.DockerExecNoError(r, "minio", "rm", "-rf", "/bitnami/minio/data/clickhouse/backups_s3")
514514
}
515515
if t.Name() == "TestCustomRsync" {

0 commit comments

Comments
 (0)