remove factory.Config struct and NewFromConfig

This commit is contained in:
Ahmad Diaa
2019-11-11 18:00:26 +01:00
parent 7b8e5fb4f5
commit 7156d4532e
3 changed files with 2 additions and 62 deletions

View File

@@ -105,13 +105,12 @@ func TestSkipPodUpdate(t *testing.T) {
}
for _, test := range table {
t.Run(test.name, func(t *testing.T) {
c := NewFromConfig(&Config{
c := &Scheduler{
SchedulerCache: &fakecache.Cache{
IsAssumedPodFunc: test.isAssumedPodFunc,
GetPodFunc: test.getPodFunc,
},
},
)
}
got := c.skipPodUpdate(test.pod)
if got != test.expected {
t.Errorf("skipPodUpdate() = %t, expected = %t", got, test.expected)