diff --git a/internal/experiment/webconnectivitylte/cleartextflow.go b/internal/experiment/webconnectivitylte/cleartextflow.go index 8ec7cc663..57650736e 100644 --- a/internal/experiment/webconnectivitylte/cleartextflow.go +++ b/internal/experiment/webconnectivitylte/cleartextflow.go @@ -274,7 +274,7 @@ func (t *CleartextFlow) httpTransaction(ctx context.Context, network, address, a err, finished, ) - t.TestKeys.AppendRequests(ev) + t.TestKeys.PrependRequests(ev) return resp, body, err } diff --git a/internal/experiment/webconnectivitylte/secureflow.go b/internal/experiment/webconnectivitylte/secureflow.go index 6284eca64..2e634467d 100644 --- a/internal/experiment/webconnectivitylte/secureflow.go +++ b/internal/experiment/webconnectivitylte/secureflow.go @@ -329,7 +329,7 @@ func (t *SecureFlow) httpTransaction(ctx context.Context, network, address, alpn err, finished, ) - t.TestKeys.AppendRequests(ev) + t.TestKeys.PrependRequests(ev) return resp, body, err } diff --git a/internal/experiment/webconnectivitylte/testkeys.go b/internal/experiment/webconnectivitylte/testkeys.go index dd2e5be31..b58065911 100644 --- a/internal/experiment/webconnectivitylte/testkeys.go +++ b/internal/experiment/webconnectivitylte/testkeys.go @@ -217,8 +217,8 @@ func (tk *TestKeys) AppendQueries(v ...*model.ArchivalDNSLookupResult) { tk.mu.Unlock() } -// AppendRequests appends to Requests. -func (tk *TestKeys) AppendRequests(v ...*model.ArchivalHTTPRequestResult) { +// PrependRequests prepends to Requests. +func (tk *TestKeys) PrependRequests(v ...*model.ArchivalHTTPRequestResult) { tk.mu.Lock() // Implementation note: append at the front since the most recent // request must be at the beginning of the list.