Skip to content

Commit

Permalink
fix test race
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsteele committed Dec 13, 2019
1 parent 1a0ce80 commit 60df3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/chat/sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ func setupTest(t *testing.T, numUsers int) (context.Context, *kbtest.ChatMockWor
g.RegexpSearcher = searcher
indexer := search.NewIndexer(g)
ictx := globals.CtxAddIdentifyMode(context.Background(), keybase1.TLFIdentifyBehavior_CHAT_SKIP, nil)
indexer.Start(ictx, uid)
indexer.SetPageSize(2)
indexer.SetStartSyncDelay(0)
indexer.Start(ictx, uid)
g.Indexer = indexer
g.AttachmentURLSrv = types.DummyAttachmentHTTPSrv{}
g.Unfurler = types.DummyUnfurler{}
Expand Down
2 changes: 1 addition & 1 deletion go/chat/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ func (c *chatTestContext) as(t *testing.T, user *kbtest.FakeUser) *chatTestUserC
g.RegexpSearcher = searcher
indexer := search.NewIndexer(g)
ictx := globals.CtxAddIdentifyMode(context.Background(), keybase1.TLFIdentifyBehavior_CHAT_SKIP, nil)
indexer.Start(ictx, uid)
indexer.SetPageSize(2)
indexer.SetStartSyncDelay(0)
indexer.Start(ictx, uid)
g.Indexer = indexer

h.setTestRemoteClient(ri)
Expand Down

0 comments on commit 60df3e9

Please sign in to comment.