Revert "Controller framework test flake fix"

This commit is contained in:
Brendan Burns
2015-09-29 20:17:16 -07:00
parent 22fa2db39a
commit d82567de85
2 changed files with 10 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ func ExampleInformer() {
time.Millisecond*100,
framework.ResourceEventHandlerFuncs{
AddFunc: func(obj interface{}) {
source.DeleteDropWatch(obj.(runtime.Object))
source.Delete(obj.(runtime.Object))
},
DeleteFunc: func(obj interface{}) {
key, err := framework.DeletionHandlingMetaNamespaceKeyFunc(obj)
@@ -327,7 +327,7 @@ func TestUpdate(t *testing.T) {
if !allowedTransitions[pair{from, to}] {
t.Errorf("observed transition %q -> %q for %v", from, to, n.Name)
}
source.DeleteDropWatch(n)
source.Delete(n)
},
DeleteFunc: func(obj interface{}) {
testDoneWG.Done()
@@ -384,7 +384,7 @@ func TestUpdate(t *testing.T) {
go func(name string, f func(string)) {
defer wg.Done()
f(name)
}(fmt.Sprintf("%d-%d", i, j), f)
}(fmt.Sprintf("%v-%v", i, j), f)
}
}
wg.Wait()