| 1956 | static int failing_index_calls = 0; |
| 1957 | static int failing_index_fail_first_n = 0; |
| 1958 | static int failing_index_callback(const char *name, const char *path, void *ud) { |
| 1959 | (void)name; |
| 1960 | (void)path; |
| 1961 | (void)ud; |
| 1962 | failing_index_calls++; |
| 1963 | if (failing_index_calls <= failing_index_fail_first_n) { |
| 1964 | return -1; /* simulated pipeline failure */ |
| 1965 | } |
| 1966 | return 0; |
| 1967 | } |
| 1968 | |
| 1969 | TEST(watcher_failed_reindex_retries_issue937) { |
| 1970 | char tmpdir[256]; |
nothing calls this directly
no outgoing calls
no test coverage detected