diff options
Diffstat (limited to 'requests/requests_test.go')
-rw-r--r-- | requests/requests_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/requests/requests_test.go b/requests/requests_test.go index 2226ffb..3dcb708 100644 --- a/requests/requests_test.go +++ b/requests/requests_test.go @@ -471,9 +471,16 @@ func TestListRequests(t *testing.T) { } // Nil filter should return all requests. + + // Nil interface. resp, err := rqueue.ListRequests(nil) assert.Nil(err) checkReqs(reqs, resp) + var flt *reqFilter + // Concrete type is nil but interface isn't nil. + resp, err = rqueue.ListRequests(flt) + assert.Nil(err) + checkReqs(reqs, resp) } func TestAcquireWorker(t *testing.T) { |