mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Merge pull request #16423 from wojtek-t/timeout_seconds_test
Auto commit by PR queue bot
This commit is contained in:
@@ -157,6 +157,16 @@ func TestRequestParam(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTimeoutSeconds(t *testing.T) {
|
||||
r := &Request{}
|
||||
r.TimeoutSeconds(time.Duration(5 * time.Second))
|
||||
if !reflect.DeepEqual(r.params, url.Values{
|
||||
"timeoutSeconds": []string{"5"},
|
||||
}) {
|
||||
t.Errorf("invalid timeoutSeconds parameter: %#v", r)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRequestVersionedParams(t *testing.T) {
|
||||
r := (&Request{apiVersion: "v1"}).Param("foo", "a")
|
||||
if !reflect.DeepEqual(r.params, url.Values{"foo": []string{"a"}}) {
|
||||
|
Reference in New Issue
Block a user