Skip to content

Commit

Permalink
fix(webconnectivitylte): include network events
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 9, 2024
1 parent 912c3e6 commit be52a25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion internal/experiment/webconnectivitylte/cleartextflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ func (t *CleartextFlow) Run(parentCtx context.Context, index int64) error {
tcpDialer := trace.NewDialerWithoutResolver(t.Logger)
tcpConn, err := tcpDialer.DialContext(tcpCtx, "tcp", t.Address)
t.TestKeys.AppendTCPConnectResults(trace.TCPConnects()...)
defer t.TestKeys.AppendNetworkEvents(trace.NetworkEvents()...) // here to include "connect" events
defer func() {
t.TestKeys.AppendNetworkEvents(trace.NetworkEvents()...) // here to include "connect" events
}()
if err != nil {
ol.Stop(err)
return err
Expand Down
4 changes: 3 additions & 1 deletion internal/experiment/webconnectivitylte/secureflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ func (t *SecureFlow) Run(parentCtx context.Context, index int64) error {
tcpDialer := trace.NewDialerWithoutResolver(t.Logger)
tcpConn, err := tcpDialer.DialContext(tcpCtx, "tcp", t.Address)
t.TestKeys.AppendTCPConnectResults(trace.TCPConnects()...)
defer t.TestKeys.AppendNetworkEvents(trace.NetworkEvents()...) // here to include "connect" events
defer func() {
t.TestKeys.AppendNetworkEvents(trace.NetworkEvents()...) // here to include "connect" events
}()
if err != nil {
ol.Stop(err)
return err
Expand Down

0 comments on commit be52a25

Please sign in to comment.