Skip to content

Commit 4cd7b6c

Browse files
mattmoorknative-prow-robot
authored andcommitted
Increase the logging in the autoscaler e2e test. (knative#2194)
1 parent d8a2b4d commit 4cd7b6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/autoscale_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ func generateTraffic(clients *test.Clients, logger *logging.BaseLogger, concurre
8484
requestID := totalRequests + 1
8585
totalRequests = requestID
8686
mux.Unlock()
87+
start := time.Now()
8788
res, err := client.Do(req)
8889
if err != nil {
8990
logger.Errorf("error making request %v", err)
9091
continue
9192
}
93+
duration := time.Now().Sub(start)
94+
logger.Infof("Request took: %v", duration)
9295

9396
if res.StatusCode != http.StatusOK {
9497
logger.Errorf("request %d failed", requestID)

0 commit comments

Comments
 (0)