(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestQueueInflightCommitSkipsWhenDateIsZero(t *testing.T) { |
| 104 | conf := &config.Configuration{ |
| 105 | Queue: config.QueueConfig{ |
| 106 | InflightCommitQueue: "inflight_commit_queue", |
| 107 | }, |
| 108 | } |
| 109 | q := &Queue{config: conf} |
| 110 | |
| 111 | transaction := getTransactionMock(100, false) |
| 112 | transaction.InflightCommitDate = time.Time{} |
| 113 | |
| 114 | err := q.QueueInflightCommit(context.Background(), &transaction) |
| 115 | assert.NoError(t, err) |
| 116 | } |
| 117 | |
| 118 | func TestQueueInflightCommitEnqueuesTask(t *testing.T) { |
| 119 | conf := &config.Configuration{ |
nothing calls this directly
no test coverage detected