diff --git a/api/runner/async_runner.go b/api/runner/async_runner.go index 52dc58477..907cdea7b 100644 --- a/api/runner/async_runner.go +++ b/api/runner/async_runner.go @@ -19,9 +19,6 @@ import ( ) 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) if err != nil { return nil, err @@ -164,7 +161,7 @@ func startAsyncRunners(ctx context.Context, wg *sync.WaitGroup, i int, url strin continue } - log.Info("Task complete:") + log.Info("Task complete") } } } diff --git a/api/runner/async_runner_test.go b/api/runner/async_runner_test.go index 0ac4f858f..febe07ef8 100644 --- a/api/runner/async_runner_test.go +++ b/api/runner/async_runner_test.go @@ -192,13 +192,8 @@ func TestTasksrvURL(t *testing.T) { tests := []struct { 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"}, - // {"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/endpoint", "http://localhost:8081/endpoint"},