diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-03-01 10:41:32 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-03-01 10:41:32 +0100 |
commit | c73ab15faf1a40c6f3fe2dd2fc5728f3d673438b (patch) | |
tree | 5d6136e9b15a93cf2d2f61434a5d8b9dd57c9b82 /endpoint_test.go | |
parent | 5498b4ee782d2878a69e7311bd5bf7a21b1e6f04 (diff) |
resolved TODO comments
Diffstat (limited to 'endpoint_test.go')
-rw-r--r-- | endpoint_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/endpoint_test.go b/endpoint_test.go index 801145c..aab2c54 100644 --- a/endpoint_test.go +++ b/endpoint_test.go @@ -54,7 +54,7 @@ func TestEndpointAddEntry(t *testing.T) { } req.Header.Set("Content-Type", "application/octet-stream") if table.trsp != nil || table.terr != nil { - ti.client.EXPECT().QueueLeaf(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) // TODO: deadline matcher? + ti.client.EXPECT().QueueLeaf(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() @@ -139,7 +139,7 @@ func TestEndpointGetLatestSth(t *testing.T) { t.Fatalf("must create http request: %v", err) } if table.trsp != nil || table.terr != nil { - ti.client.EXPECT().GetLatestSignedLogRoot(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) // TODO: deadline matcher? + ti.client.EXPECT().GetLatestSignedLogRoot(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() @@ -305,7 +305,7 @@ func TestEndpointGetProofByHash(t *testing.T) { } req.Header.Set("Content-Type", "application/octet-stream") if table.trsp != nil || table.terr != nil { - ti.client.EXPECT().GetInclusionProofByHash(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) // TODO: deadline matcher? + ti.client.EXPECT().GetInclusionProofByHash(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() @@ -367,7 +367,7 @@ func TestEndpointGetConsistencyProof(t *testing.T) { } req.Header.Set("Content-Type", "application/octet-stream") if table.trsp != nil || table.terr != nil { - ti.client.EXPECT().GetConsistencyProof(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) // TODO: deadline matcher? + ti.client.EXPECT().GetConsistencyProof(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() @@ -429,7 +429,7 @@ func TestEndpointGetEntriesV1(t *testing.T) { } req.Header.Set("Content-Type", "application/octet-stream") if table.trsp != nil || table.terr != nil { - ti.client.EXPECT().GetLeavesByRange(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) // TODO: deadline matcher? + ti.client.EXPECT().GetLeavesByRange(newDeadlineMatcher(), gomock.Any()).Return(table.trsp, table.terr) } w := httptest.NewRecorder() |