Skip to content

Commit 2a49baa

Browse files
committed
Add notation to TestBindToDataset in pkg\ddc\jindo\dataset_test.go.
Signed-off-by: JunyuWu <3286848766@qq.com>
1 parent 441d216 commit 2a49baa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/ddc/jindo/dataset_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ func TestUpdateDatasetStatus(t *testing.T) {
250250
}
251251
}
252252

253+
254+
// TestBindToDataset tests the BindToDataset method of JindoEngine to verify whether it can correctly bind the dataset to the runtime
255+
// and update the dataset's cache state and HCFS status. The test creates mock Dataset and JindoRuntime objects,
256+
// uses a fake client to simulate operations, and finally checks if the dataset's Phase, CacheStates, and HCFSStatus match the expected results.
253257
func TestBindToDataset(t *testing.T) {
254258
testDatasetInputs := []*datav1alpha1.Dataset{
255259
{

0 commit comments

Comments
 (0)