From 788e30e05ea1c1120c2129d05ad5b16fef4b7002 Mon Sep 17 00:00:00 2001 From: Slach Date: Thu, 7 Sep 2023 11:39:58 +0400 Subject: [PATCH] clean cache for metadata for no_delete_backup to avoid conflict with TestServerAPI --- test/integration/integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index f9b9e198..8add5653 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -435,7 +435,8 @@ func TestS3NoDeletePermission(t *testing.T) { r.Error(dockerExec("clickhouse-backup", "clickhouse-backup", "delete", "remote", "no_delete_backup")) databaseList := []string{dbNameOrdinary, dbNameAtomic, dbNameMySQL, dbNamePostgreSQL, Issue331Atomic, Issue331Ordinary} dropDatabasesFromTestDataDataSet(t, r, ch, databaseList) - r.NoError(dockerExec("minio", "bash", "-ce", "rm -rf /data/clickhouse/*")) + r.NoError(dockerExec("minio", "bash", "-ce", "rm -rfv /data/clickhouse/*")) + r.NoError(dockerExec("clickhouse-backup", "bash", "-ce", "rm -rfv /tmp/*")) } // TestDoRestoreRBAC need clickhouse-server restart, no parallel