Skip to content

Commit 4889c35

Browse files
author
Dan Laine
committed
remove errant log; fix test
1 parent b073d6a commit 4889c35

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

indexer/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestIndexClient(t *testing.T) {
4848
id = ids.GenerateTestID()
4949
client.EndpointRequester = &mockClient{
5050
f: func(reply interface{}) error {
51-
*(reply.(**GetContainerRangeResponse)) = &GetContainerRangeResponse{Containers: []FormattedContainer{{ID: id}}}
51+
*(reply.(*GetContainerRangeResponse)) = GetContainerRangeResponse{Containers: []FormattedContainer{{ID: id}}}
5252
return nil
5353
},
5454
}

indexer/indexer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ func (i *indexer) RegisterChain(name string, ctx *snow.Context, engine common.En
206206
}
207207

208208
if !i.allowIncompleteIndex && isIncomplete && (previouslyIndexed || i.hasRunBefore) {
209-
i.log.Fatal("previously indexed: %v. has run before: %v", previouslyIndexed, i.hasRunBefore)
210209
i.log.Fatal("index %s is incomplete but incomplete indices are disabled. Shutting down", name)
211210
if err := i.close(); err != nil {
212211
i.log.Error("error while closing indexer: %s", err)

indexer/indexer_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,6 @@ func TestIncompleteIndex(t *testing.T) {
502502
assert.NoError(err)
503503
idxr, ok = idxrIntf.(*indexer)
504504
assert.True(ok)
505-
506-
// Register the chain again. Should still die due to incomplete index.
507-
idxr.RegisterChain("chain1", chain1Ctx, chainEngine)
508-
assert.True(idxr.closed)
509505
}
510506

511507
// Ensure we only index chains in the primary network

0 commit comments

Comments
 (0)