mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added context for runnerpool interface (#1320)
* added context for runnerpool interface * added context for runnerpool interface
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user