Skip to content

Commit

Permalink
Ensure we're seeing the new doc
Browse files Browse the repository at this point in the history
  • Loading branch information
adambollen committed Dec 17, 2024
1 parent 959bebf commit 7b4f395
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/java/com/fauna/e2e/E2EFeedsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fauna.exception.InvalidRequestException;
import com.fauna.response.QueryFailure;
import com.fauna.response.QuerySuccess;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -104,7 +105,7 @@ public void manualFeed() {
assertEquals(50, productUpdates.size());
assertEquals(25, pageCount);

client.query(fql("Product.create({name:\"newProduct\",quantity:1})"),
client.query(fql("Product.create({name:\"newProduct\",quantity:123})"),
Product.class);

FeedOptions newOptions =
Expand All @@ -114,7 +115,11 @@ public void manualFeed() {
FeedPage<Product> newPageFuture =
client.poll(source, newOptions, Product.class).join();

assertEquals(1, newPageFuture.getEvents().size());
List<FaunaEvent<Product>> newEvents = newPageFuture.getEvents();

assertEquals(1, newEvents.size());
assertEquals("newProduct", newEvents.get(0).getData().get().getName());
assertEquals(123, newEvents.get(0).getData().get().getQuantity());
}

@Test
Expand Down

0 comments on commit 7b4f395

Please sign in to comment.