added context for runnerpool interface (#1320)

* added context for runnerpool interface

* added context for runnerpool interface
This commit is contained in:
Shreya Garge
2018-11-20 17:02:47 +00:00
committed by GitHub
parent 47dab09996
commit 91f6ef3402
7 changed files with 8 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ func TestNewStaticPool(t *testing.T) {
addrs := []string{"127.0.0.1:8080", "127.0.0.1:8081"}
np := setupStaticPool(addrs)
runners, err := np.Runners(nil)
runners, err := np.Runners(context.Background(), nil)
if err != nil {
t.Fatalf("Failed to list runners %v", err)
}
@@ -62,7 +62,7 @@ func TestNewStaticPool(t *testing.T) {
func TestEmptyPool(t *testing.T) {
np := setupStaticPool(nil).(*staticRunnerPool)
runners, err := np.Runners(nil)
runners, err := np.Runners(context.Background(), nil)
if err != nil {
t.Fatalf("Failed to list runners %v", err)
}