[#79692868] less fragile assertion

this assert should not break if the chain
changes length. this fix should keep the
test succeeding when it should