Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/ddc/alluxio/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ func TestMountRootWithoutEnvSet(t *testing.T) {
}
}
}

// Test_isPortInUsed tests the functionality of the isPortInUsed function.
// This function checks whether a specified port is in the list of used ports.
// Test cases include:
// - Checking if a port is in the list of used ports.
// Each test case calls the isPortInUsed function and verifies if the returned value matches the expected result.
// If the returned value does not match the expected result, the test fails and outputs an error message.
func Test_isPortInUsed(t *testing.T) {
type args struct {
port int
Expand Down
Loading