Skip to content

Commit

Permalink
[backport] fix(stunreachability): repair tests
Browse files Browse the repository at this point in the history
This diff backports 61f777c to the release/3.15 branch.
  • Loading branch information
bassosimone committed Jun 6, 2022
1 parent ed2fb05 commit 80e2649
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ func TestRunWithInput(t *testing.T) {
measurement.Input = model.MeasurementTarget(defaultInput)
err := measurer.Run(
context.Background(),
&mockable.Session{},
&mockable.Session{
MockableLogger: model.DiscardLogger,
},
measurement,
model.NewPrinterCallbacks(log.Log),
)
Expand Down Expand Up @@ -124,7 +126,9 @@ func TestCancelledContext(t *testing.T) {
measurement.Input = model.MeasurementTarget(defaultInput)
err := measurer.Run(
ctx,
&mockable.Session{},
&mockable.Session{
MockableLogger: model.DiscardLogger,
},
measurement,
model.NewPrinterCallbacks(log.Log),
)
Expand Down Expand Up @@ -164,7 +168,9 @@ func TestNewClientFailure(t *testing.T) {
measurement.Input = model.MeasurementTarget(defaultInput)
err := measurer.Run(
context.Background(),
&mockable.Session{},
&mockable.Session{
MockableLogger: model.DiscardLogger,
},
measurement,
model.NewPrinterCallbacks(log.Log),
)
Expand Down Expand Up @@ -198,7 +204,9 @@ func TestStartFailure(t *testing.T) {
measurement.Input = model.MeasurementTarget(defaultInput)
err := measurer.Run(
context.Background(),
&mockable.Session{},
&mockable.Session{
MockableLogger: model.DiscardLogger,
},
measurement,
model.NewPrinterCallbacks(log.Log),
)
Expand Down Expand Up @@ -236,7 +244,9 @@ func TestReadFailure(t *testing.T) {
measurement.Input = model.MeasurementTarget(defaultInput)
err := measurer.Run(
context.Background(),
&mockable.Session{},
&mockable.Session{
MockableLogger: model.DiscardLogger,
},
measurement,
model.NewPrinterCallbacks(log.Log),
)
Expand Down

0 comments on commit 80e2649

Please sign in to comment.