Closed hannahhoward closed 3 years ago
Fix flaky tests for the DontHaveTimeoutManger
Replace clock with a mock, so that we are able to mock out time in tests, modify tests to use mock time and be more predictable.
Also avoid AfterFunc cause of potential problems with channel consumption.
Part of ipfs/go-libipfs#86
These tests appear to be passing now.
Goals
Fix flaky tests for the DontHaveTimeoutManger
Implementation
Replace clock with a mock, so that we are able to mock out time in tests, modify tests to use mock time and be more predictable.
Also avoid AfterFunc cause of potential problems with channel consumption.