Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe <chloe.yip@improving.com>
  • Loading branch information
cyip10 committed Oct 11, 2024
1 parent e14093c commit 1a09484
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,16 @@ public void ft_aliasadd_aliasdel_aliasupdate() {

assertEquals(OK, FT.aliasupdate(client, alias1, indexName).get());

// exception with calling `aliasdel` on an alias that doesn't exist
exception = assertThrows(ExecutionException.class, () -> FT.aliasdel(client, alias2).get());
assertInstanceOf(RequestException.class, exception.getCause());
assertTrue(exception.getMessage().contains("Alias does not exist"));

// exception with calling `aliasadd` with a nonexisting index
exception =
assertThrows(
ExecutionException.class, () -> FT.aliasadd(client, alias1, "nonexistent_index").get());
assertInstanceOf(RequestException.class, exception.getCause());
assertTrue(exception.getMessage().contains("Index does not exist"));

assertEquals(OK, FT.aliasdel(client, alias1).get());
}
}

0 comments on commit 1a09484

Please sign in to comment.