itest+lncfg: test the quiescence timeout behaivor

This commit is contained in:
yyforyongyu
2025-06-27 21:13:09 +08:00
parent 56fd8eeb43
commit c4c519a3ae
2 changed files with 56 additions and 3 deletions

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)
}