Revert "Use watch param instead of deprecated /watch/ prefix"
This commit is contained in:

committed by
GitHub

parent
6a65964d0e
commit
a21b08d00f
@@ -29,7 +29,6 @@ import (
|
||||
|
||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/fields"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
@@ -492,11 +491,11 @@ func TestSingleWatch(t *testing.T) {
|
||||
}
|
||||
|
||||
w, err := client.Core().RESTClient().Get().
|
||||
Prefix("watch").
|
||||
Namespace(ns.Name).
|
||||
Resource("events").
|
||||
Name("event-9").
|
||||
Param("resourceVersion", rv1).
|
||||
Param("watch", "true").
|
||||
FieldsSelectorParam(fields.OneTermEqualSelector("metadata.name", "event-9")).
|
||||
Watch()
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user