Skip to content

Commit

Permalink
fix(stunreachability): repair tests
Browse files Browse the repository at this point in the history
This diff WILL need to be backported to release/3.15

<insert here facepalm>
  • Loading branch information
bassosimone committed Jun 6, 2022
1 parent 5fd10bd commit 61f777c
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 61f777c

Please sign in to comment.