mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
test: keep delete safety cleanup fixture fresh
This commit is contained in:
1 parent
264aa010fe
commit
ad2b0fe7b6
1 file changed
+2
-1
@@ -606,12 +606,13 @@ func TestOpsExplainProjectsDeletingCRFromCleanupSummary(t *testing.T) {
|
||||
t.Setenv("KUBERNETES_SERVICE_HOST", "10.0.0.1")
|
||||
|
||||
cleanupSummary := filepath.Join(t.TempDir(), "cleanup-summary.txt")
|
||||
cleanupObservedAt := time.Now().UTC().Format(time.RFC3339)
|
||||
if err := os.WriteFile(cleanupSummary, []byte(strings.Join([]string{
|
||||
"cleanup_status=failed",
|
||||
"iscsi_residue_count=1",
|
||||
"failure_count=1",
|
||||
"reason_codes=iscsi_node_records_present",
|
||||
"cleanup_observed_at=2026-06-17T08:00:00Z",
|
||||
"cleanup_observed_at=" + cleanupObservedAt,
|
||||
}, "\n")), 0o600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user