(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestHelperFunctionsStartError(t *testing.T) { |
| 82 | t.Parallel() |
| 83 | |
| 84 | e := errors.New("some error") |
| 85 | s := NewIdleService(func(context.Context) error { return e }, nil) |
| 86 | |
| 87 | require.Equal(t, e, StartAndAwaitRunning(context.Background(), s)) |
| 88 | require.Equal(t, e, StopAndAwaitTerminated(context.Background(), s)) |
| 89 | } |
| 90 | |
| 91 | func TestHelperFunctionsStartTooSlow(t *testing.T) { |
| 92 | t.Parallel() |
nothing calls this directly
no test coverage detected