Skip to content

Commit

Permalink
redfishpower: reduce polling interval in test mode
Browse files Browse the repository at this point in the history
Problem: When in test mode, the status polling interval is still
set to 1 second.  This can slow down tests.

Reduce the status polling interval to 1 millisecond when in test mode.
  • Loading branch information
chu11 committed Mar 1, 2024
1 parent aaa8f5d commit 0b63035
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/redfishpower/redfishpower.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,11 @@ int main(int argc, char *argv[])
free(hostname);
}
hostlist_iterator_destroy(itr);

/* under test mode we can make the polling interval a lot smaller
* lets put it to a millisecond.
*/
status_polling_interval = 1000;
}

shell(mh);
Expand Down

0 comments on commit 0b63035

Please sign in to comment.