mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
address comments
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
c8360913ee
commit
a86bffedcf
@ -42,16 +42,15 @@ func TestFrameworkContract(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNewFramework(t *testing.T) {
|
||||
stopCh := make(<-chan struct{})
|
||||
var f interface{}
|
||||
if f, _ = runtime.NewFramework(nil, nil, stopCh); f != nil {
|
||||
if f, _ = runtime.NewFramework(nil, nil, nil); f != nil {
|
||||
_, ok := f.(framework.Framework)
|
||||
assert.Equal(t, true, ok)
|
||||
assert.True(t, ok)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewCycleState(t *testing.T) {
|
||||
var state interface{} = framework.NewCycleState()
|
||||
_, ok := state.(*framework.CycleState)
|
||||
assert.Equal(t, true, ok)
|
||||
assert.True(t, ok)
|
||||
}
|
||||
|
@ -28,8 +28,7 @@ var _ framework.NodeInfoLister = &nodeInfoListerContract{}
|
||||
var _ framework.StorageInfoLister = &storageInfoListerContract{}
|
||||
var _ framework.SharedLister = &shareListerContract{}
|
||||
|
||||
type nodeInfoListerContract struct {
|
||||
}
|
||||
type nodeInfoListerContract struct{}
|
||||
|
||||
func (c *nodeInfoListerContract) List() ([]*framework.NodeInfo, error) {
|
||||
return nil, nil
|
||||
|
Loading…
Reference in New Issue
Block a user