Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

WebWatcher behavior #151

Open
aeb-dev opened this issue Apr 12, 2018 · 0 comments
Open

WebWatcher behavior #151

aeb-dev opened this issue Apr 12, 2018 · 0 comments

Comments

@aeb-dev
Copy link

aeb-dev commented Apr 12, 2018

I'm not sure how this should behave but when I use WebWatcherConfiguration with WithTimeout, the watcher result is valid only on first iteration. However, if I use WithHttpServiceProvider it is okay.

WebWatcherConfiguration configuration = WebWatcherConfiguration
                .Create("http://localhost:5000")
                //.WithHttpServiceProvider(() => new HttpService(new HttpClient() { Timeout = TimeSpan.FromSeconds(1) }))
                .WithRequest(HttpRequest.Get("v1/health-check"))
                // .WithTimeout(TimeSpan.FromSeconds(1))
                .EnsureThat(response => response.Data == "OK")
                .Build();

Is it normal behavior or am I doing something wrong?
The warden is initialized and started at startup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant