Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Fix file provider test flakiness. #645

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Conversation

manugarg
Copy link
Contributor

Instead of checking for lister time being after the file mod time, check for it not being before the file mod time.

File lister update time can be same as temp file's mod time. In some test environments, time.Now() may not change from one call to another.

Failure ref: https://github.com/google/cloudprober/runs/3196053886

PiperOrigin-RevId: 387668329

Instead of checking for lister time being after the file mod time, check for it not being before the file mod time.

File lister update time can be same as temp file's mod time. In some test environments, time.Now() may not change from one call to another.

Failure ref: https://github.com/google/cloudprober/runs/3196053886

PiperOrigin-RevId: 387668329
@manugarg manugarg merged commit 0e123fa into master Jul 29, 2021
@manugarg manugarg deleted the 63729A23134379909BFCA3AC3C378B48 branch July 29, 2021 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce resource consumption when using file discovery with same file in multiple probes
1 participant