update expectation of socoket