Canada requires testing, so you do have to test. Up to 2 days out for antigen, up to 72 hours out for PCR.
NOTE the specific wording, so it doesn't trip you up. 2 DAYS, so midnight cut off for antigen. And 72 HOURS, which cuts off at the exact 72 hour mark, so you want to make sure that something like a 2 hour delay at boarding won't cut you off.
Also, you must fill out vaccination proof and info on the ArriveCAN app prior to docking at a Canadian port.