diff --git a/domain/consensus/timelock_CLTV_test.go b/domain/consensus/timelock_CLTV_test.go index ab9bbc281..4a808457b 100644 --- a/domain/consensus/timelock_CLTV_test.go +++ b/domain/consensus/timelock_CLTV_test.go @@ -160,8 +160,8 @@ func TestCheckLockTimeVerifyConditionedByAbsoluteTime(t *testing.T) { t.Fatalf("Failed getting blockD: %v", err) } //Create a CLTV script: - numOfSecondsToWait := int64(12 * 1000) - lockTimeTarget := blockD.Header.TimeInMilliseconds() + numOfSecondsToWait + timeToWait := int64(12 * 1000) + lockTimeTarget := blockD.Header.TimeInMilliseconds() + timeToWait redeemScriptCLTV, err := createScriptCLTV(lockTimeTarget) if err != nil { t.Fatalf("Failed to create a script using createScriptCLTV: %v", err)