define the postResult variable so that tests can check when it is finished