mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Add test coverage and fix a few minor problems
This commit is contained in:
@@ -242,3 +242,10 @@ func TestDoRequestCreated(t *testing.T) {
|
||||
}
|
||||
fakeHandler.ValidateRequest(t, "/"+testapi.Version()+"/test", "GET", nil)
|
||||
}
|
||||
|
||||
func TestDefaultPoll(t *testing.T) {
|
||||
c := &RESTClient{PollPeriod: 0}
|
||||
if req, ok := c.DefaultPoll("test"); req != nil || ok {
|
||||
t.Errorf("expected nil request and not poll")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user