itest+lncfg: test the quiescence timeout behaivor

This commit is contained in:
yyforyongyu committed 2025-07-04 04:20:00 +08:00
1 parent 56fd8eeb43
commit c4c519a3ae
2 files changed
+56 -3

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ func (h *Htlcswitch) Validate() error {
MaxMailboxDeliveryTimeout)
}
if h.QuiescenceTimeout < minQuiescenceTimeout {
// Skip the validation for integration tests so we can use a smaller
// timeout value to check the timeout behavior.
if !IsDevBuild() && h.QuiescenceTimeout < minQuiescenceTimeout {
return fmt.Errorf("quiescencetimeout: %v below minimal: %v",
h.QuiescenceTimeout, minQuiescenceTimeout)
}