mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix unit tests and known flags list
This commit is contained in:
parent
fd4596bd27
commit
db5fa5297d
@ -71,6 +71,8 @@ cluster-tag
|
||||
cluster-monitor-period
|
||||
cluster-signing-cert-file
|
||||
cluster-signing-key-file
|
||||
cni-bin-dir
|
||||
cni-conf-dir
|
||||
concurrent-deployment-syncs
|
||||
concurrent-endpoint-syncs
|
||||
concurrent-namespace-syncs
|
||||
|
@ -183,7 +183,7 @@ func TestCNIPlugin(t *testing.T) {
|
||||
NetnsPath: "/proc/12345/ns/net",
|
||||
}}
|
||||
|
||||
plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), testVendorCNIDirPrefix)
|
||||
plugins := probeNetworkPluginsWithVendorCNIDirPrefix(path.Join(testNetworkConfigPath, pluginName), "", testVendorCNIDirPrefix)
|
||||
if len(plugins) != 1 {
|
||||
t.Fatalf("Expected only one network plugin, got %d", len(plugins))
|
||||
}
|
||||
@ -246,7 +246,7 @@ func TestCNIPlugin(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLoNetNonNil(t *testing.T) {
|
||||
if conf := getLoNetwork(""); conf == nil {
|
||||
if conf := getLoNetwork("", ""); conf == nil {
|
||||
t.Error("Expected non-nil lo network")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user