def test_deleteIndexCanBlockOtherRequests(self):
        """Test if delete_index request can block other create/delete index requests."""
        index_name_1 = "test_index_" + str(uuid.uuid4())
        index_name_2 = "test_index_" + str(uuid.uuid4())

        # Create a dummy index for deletion
        self.client.create_index(index_name=index_name_1)

        def delete_index():
            self.client.delete_index(index_name=index_name_1)

        t1 = threading.Thread(target=delete_index)
        t1.start()
        time.sleep(0.5)

        try:
            with self.assertRaises(MarqoWebError) as e:
                self.client.create_index(index_name=index_name_2)
            self.assertIn("Your indexes are being updated. Please try again shortly.",
                          str(e.exception))

            with self.assertRaises(MarqoWebError) as e:
                self.client.delete_index(index_name=index_name_1)
            self.assertIn("Your indexes are being updated. Please try again shortly.",
                          str(e.exception))
        finally:
            t1.join()
Test if delete_index request can block other create/delete index requests.
tests/api_tests/v1/tests/api_tests/test_create_index.py