Skip to content

Commit

Permalink
fix: add test for get interface manager and reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Nov 6, 2024
1 parent 16b4e5f commit b43b49b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,16 @@ func TestIndex_UpdateIndex(t *testing.T) {
})
}
}

func TestIndexManagerAndReaders(t *testing.T) {
c := setup(t, "")
idx := c.Index("indexUID")
require.NotNil(t, idx)
require.NotNil(t, idx.GetIndexReader())
require.NotNil(t, idx.GetTaskReader())
require.NotNil(t, idx.GetSettingsManager())
require.NotNil(t, idx.GetSettingsReader())
require.NotNil(t, idx.GetSearch())
require.NotNil(t, idx.GetDocumentManager())
require.NotNil(t, idx.GetDocumentReader())
}
9 changes: 9 additions & 0 deletions meilisearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2332,3 +2332,12 @@ func Test_CreateSnapshot(t *testing.T) {
require.NoError(t, err)
testWaitForTask(t, c.Index("indexUID"), task)
}

func TestGetServiceManagerAndReaders(t *testing.T) {
c := setup(t, "")
require.NotNil(t, c.GetServiceReader())
require.NotNil(t, c.GetTaskManager())
require.NotNil(t, c.GetTaskReader())
require.NotNil(t, c.GetKeyManager())
require.NotNil(t, c.GetKeyReader())
}

0 comments on commit b43b49b

Please sign in to comment.