Assuming that you're referring to the Californian tale,
Mark twain able to vividly describe the husband's feeling of hope when he's waiting for his wife to came back. Even though he didn't knew that she has died. It heavily affected the mood of the climax
hope this helps