Skip to content

Commit

Permalink
Fix index refresh issue
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Bhagat <[email protected]>
  • Loading branch information
nishantb1 committed Oct 18, 2023
1 parent 0e55d38 commit ce4e398
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ internal object NotificationConfigIndex : ConfigOperations {
*/
override suspend fun createNotificationConfig(configDoc: NotificationConfigDoc, id: String?): String? {
createIndex()
val indexRequest = IndexRequest(INDEX_NAME)
val indexRequest = IndexRequest(INDEX_NAME).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
.source(configDoc.toXContent())
.create(true)
if (id != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class ChimeNotificationConfigCrudIT : PluginRestTestCase() {
""".trimIndent()
val configId = createConfigWithRequestJsonString(createRequestJsonString)
Assert.assertNotNull(configId)
Thread.sleep(1000)

// Get chime notification config

Expand Down

0 comments on commit ce4e398

Please sign in to comment.