(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestWaitForBlockSoonDistantFuture(t *testing.T) { |
| 77 | c, _ := newTestChain(t, time.Now()) |
| 78 | |
| 79 | got := <-c.BlockSoonWaiter(context.Background(), 100) // distant future |
| 80 | want := ErrTheDistantFuture |
| 81 | if got != want { |
| 82 | t.Errorf("BlockSoonWaiter(100) = %+v want %+v", got, want) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | func TestWaitForBlockSoonWaits(t *testing.T) { |
| 87 | // This test is inherently racy. It's possible |
nothing calls this directly
no test coverage detected