mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Minor to fix comments in PR.
This commit is contained in:
@@ -19,9 +19,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func getTask(ctx context.Context, url string) (*models.Task, error) {
|
func getTask(ctx context.Context, url string) (*models.Task, error) {
|
||||||
// log := common.Logger(ctx)
|
|
||||||
// log.Infoln("Getting task from URL:", url)
|
|
||||||
|
|
||||||
resp, err := http.Get(url)
|
resp, err := http.Get(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -164,7 +161,7 @@ func startAsyncRunners(ctx context.Context, wg *sync.WaitGroup, i int, url strin
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Task complete:")
|
log.Info("Task complete")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,13 +192,8 @@ func TestTasksrvURL(t *testing.T) {
|
|||||||
tests := []struct {
|
tests := []struct {
|
||||||
in, out string
|
in, out string
|
||||||
}{
|
}{
|
||||||
// we shouldn't be swapping out no port with 8080, those would be 80. Also, we shouldn't accept anything but a full URL (base URL) in API_URL
|
|
||||||
// {"//localhost", "http://localhost:8080/tasks"},
|
|
||||||
// {"//localhost/", "http://localhost:8080/tasks"},
|
|
||||||
{"//localhost:8081", "http://localhost:8081/tasks"},
|
{"//localhost:8081", "http://localhost:8081/tasks"},
|
||||||
{"//localhost:8081/", "http://localhost:8081/tasks"},
|
{"//localhost:8081/", "http://localhost:8081/tasks"},
|
||||||
// {"http://localhost", "http://localhost:8080/tasks"},
|
|
||||||
// {"http://localhost/", "http://localhost:8080/tasks"},
|
|
||||||
{"http://localhost:8081", "http://localhost:8081/tasks"},
|
{"http://localhost:8081", "http://localhost:8081/tasks"},
|
||||||
{"http://localhost:8081/", "http://localhost:8081/tasks"},
|
{"http://localhost:8081/", "http://localhost:8081/tasks"},
|
||||||
{"http://localhost:8081/endpoint", "http://localhost:8081/endpoint"},
|
{"http://localhost:8081/endpoint", "http://localhost:8081/endpoint"},
|
||||||
|
|||||||
Reference in New Issue
Block a user