Addresses issue #6596.

Removes ForTesting_ReferencesAllowBlankSelfLinks.
Fixes controller's persistentvolumes unit tests.
This commit is contained in:
Avesh Agarwal
2015-10-12 19:21:48 -04:00
parent 49b56d1788
commit 8e4a8b7260
7 changed files with 6 additions and 25 deletions

View File

@@ -39,10 +39,6 @@ import (
var alwaysReady = func() bool { return true }
func init() {
api.ForTesting_ReferencesAllowBlankSelfLinks = true
}
func getKey(rc *api.ReplicationController, t *testing.T) string {
if key, err := controller.KeyFunc(rc); err != nil {
t.Errorf("Unexpected error getting key for rc %v: %v", rc.Name, err)