Skip to content

Commit

Permalink
Fix bad function comment
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Nov 26, 2024
1 parent 660eae1 commit 5301b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/docker/test-helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func NewTestConfig(k3sImage string) (*TestConfig, error) {
return config, nil
}

// portUsed checks if a port is in use
// portFree checks if a port is in use and returns true if it is free
func portFree(port int) bool {
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
if err != nil {
Expand Down

0 comments on commit 5301b89

Please sign in to comment.