Skip to content

Commit 5d4b734

Browse files
nellish123Srjcheyang
authored
This PR is to add comments to TestInvokeCleanCache in pkg\ddc\alluxio\cache_test.go. (#4905)
* Add comments/notation to TestInvokeCleanCache in pkg\ddc\alluxio\cache_test.go. Signed-off-by: Srj <sunrunjia@smail.nju.edu.cn> * add comments to TestInvokeCleanCache in pkg\ddc\alluxio\cache_test.go. Signed-off-by: Srj <sunrunjia@smail.nju.edu.cn> * fix go fmt issue of pkg/ddc/alluxio/cache_test.go Signed-off-by: cheyang <cheyang@163.com> --------- Signed-off-by: Srj <sunrunjia@smail.nju.edu.cn> Signed-off-by: cheyang <cheyang@163.com> Co-authored-by: Srj <sunrunjia@smail.nju.edu.cn> Co-authored-by: cheyang <cheyang@163.com>
1 parent 0494782 commit 5d4b734

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/ddc/alluxio/cache_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ func TestPatchDatasetStatus(t *testing.T) {
231231
}
232232
}
233233

234+
// TestInvokeCleanCache tests the behavior of the invokeCleanCache function in the AlluxioEngine.
235+
// It simulates different StatefulSet statuses using a fake client to verify whether the function
236+
// correctly determines if an error should be returned based on the readiness state of the replicas.
237+
//
238+
// Parameters:
239+
// - t (*testing.T): The testing context used to run assertions.
240+
//
241+
// Returns:
242+
// - None. The function uses t.Errorf to report test failures.
234243
func TestInvokeCleanCache(t *testing.T) {
235244
masterInputs := []*appsv1.StatefulSet{
236245
{

0 commit comments

Comments
 (0)