Skip to content

Commit 404885a

Browse files
authored
add comment (#4650)
Signed-off-by: yuio0801 <[email protected]>
1 parent 0fde82b commit 404885a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/ddc/alluxio/metadata_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ func TestSyncMetadataWithoutMaster(t *testing.T) {
349349
}
350350
}
351351

352+
// TestShouldSyncMetadata tests the behavior of the shouldSyncMetadata method.
353+
// This test verifies whether metadata synchronization is correctly determined
354+
// under different Dataset and AlluxioRuntime configurations.
355+
// Test cases include:
356+
// 1. A Dataset with metadata already synced should not trigger synchronization.
357+
// 2. A Dataset with an empty UfsTotal should trigger synchronization by default.
358+
// 3. A Dataset with AutoSync enabled should trigger synchronization.
359+
// 4. A Dataset with AutoSync disabled should not trigger synchronization.
352360
func TestShouldSyncMetadata(t *testing.T) {
353361
datasetInputs := []datav1alpha1.Dataset{
354362
{

0 commit comments

Comments
 (0)