diff --git a/options_test.go b/options_test.go index 4880bd195..438de3d83 100644 --- a/options_test.go +++ b/options_test.go @@ -143,3 +143,12 @@ func TestRegistrarTimeout(t *testing.T) { t.Fatal("o.registrarTimeout is not equal to v") } } + +func TestStopTimeout(t *testing.T) { + o := &options{} + v := time.Duration(123) + StopTimeout(v)(o) + if !reflect.DeepEqual(v, o.stopTimeout) { + t.Fatal("o.stopTimeout is not equal to v") + } +}