Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
patsissons committed Dec 18, 2024
1 parent 02e9699 commit 278c95d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: ./.github/actions/install-dependencies
- run: npm test
env:
TZ: "America/Los_Angeles"
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}

- uses: "marvinpinto/action-automatic-releases@latest"
Expand Down
8 changes: 5 additions & 3 deletions tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ describe("carts", () => {
// await cart.checkout();
// }, 10000);

// broken
test.skip("waitlist", async () => {
// flaky
test("waitlist", async () => {
const locations = await anon.locations.list();
let cart = await anon.carts.create(locations[0]);
const categories = await cart.getAvailableCategories();
Expand All @@ -189,9 +189,11 @@ describe("carts", () => {
cart = await cart.addBookableItem(service as CartAvailableBookableItem);

const dates = await cart.getBookableDates();
const date = dates[0];
// kind of a hack to protect against flaky timezone boundary behaviour
const date = dates[1] || dates[0];

const times = await cart.getBookableTimes(date);
console.log("waitlist.times", times);
const time = times[0];

cart = await cart.reserveBookableItems(time);
Expand Down

0 comments on commit 278c95d

Please sign in to comment.