Use round-robin strategy while assigning workers

This commit is contained in:
Murat Kabilov
2017-10-09 16:56:27 +02:00
committed by GitHub
parent d6393d46cb
commit 32aa7270e6
3 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -95,11 +95,11 @@ func TestClusterWorkerID(t *testing.T) {
}{
{
in: spec.NamespacedName{Namespace: "foo", Name: "bar"},
expected: 2,
expected: 0,
},
{
in: spec.NamespacedName{Namespace: "default", Name: "testcluster"},
expected: 3,
expected: 1,
},
}
for _, test := range testTable {