We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43cc09 commit 4f41f72Copy full SHA for 4f41f72
pkg/controller/netns/netns_test.go
@@ -161,7 +161,7 @@ func TestIsProcess(t *testing.T) {
161
{
162
name: "empty name directory",
163
entry: createMockDirEntry("", true),
164
- want: true, // strings.IndexFunc returns -1 for empty string, which means no non-numeric chars found
+ want: true, // An empty name is not a valid process ID.
165
},
166
}
167
0 commit comments