ArticlesRequest a consultationContact

Calendar and scheduling 7 min read

How to test double booking before launching a scheduling app

Test two separate customers requesting one available slot at the same controlled point in staging. Check the durable reservation records and both customer responses. Then test a lost response and a retry of the same booking intent. One successful screen interaction doesn't cover those failures.

Two colleagues using laptops with calendar grids while reviewing a meeting-room reservation. AI-generated illustration of a fictional scene.
Original AI-generated editorial illustration of a fictional booking review. It does not show a WTG client or an actual test result.

Founder, Wagenberg Technology Group

Prepared with AI assistance under Thomas's standing editorial instructions. Source checks and automated editorial review completed for this version.

What I would verify before release

  • The written capacity rule is enforced when the booking is committed.
  • Two competing requests and one repeated request have separate tests.
  • The reservation, customer message and calendar state agree after recovery.

Start with the booking rule

I would start by writing down what one confirmed booking means. Which resource is reserved? Does the whole appointment need to fit? When does a temporary hold expire? Can a customer reserve more than one place?

For the example in this guide, one room has capacity for one booking from 9:00 to 9:30. Those times are fictional. The rule is that two active reservations for that room can't overlap. A class with ten places needs a different capacity rule, so I wouldn't copy this example without changing it.

I also want to know where the rule is enforced. A calendar that hides a taken slot can still show old availability to another user. Ask the developer what prevents both requests from being accepted when they reach the server together.

For a PostgreSQL implementation, the official documentation shows exclusion constraints for overlapping reservations. That's one database technique to consider with your developer. Its suitability depends on your schema and booking policy.

Test two customers trying to take one slot

I would run this in staging with disposable test accounts and a test calendar. Don't use a real customer's appointment or payment method.

  1. Create one available resource and one time interval. Remove other test holds for that interval.
  2. Open the same availability in two separate customer sessions. Give each request its own operation identifier.
  3. Ask the developer to pause both requests immediately before the availability decision, then release them together. Clicking two buttons by hand might never exercise the race you're trying to check.
  4. Record both responses and the durable reservation records. Check confirmations and external calendar events as well.
  5. Verify what the unsuccessful customer sees. They need a clear next step, not a confirmation for a reservation that doesn't exist.

Worked example: expected behavior, not a customer result

Test customer A and test customer B request the same fictional room from 9:00 to 9:30. With capacity one, the expected result is one active confirmed reservation. The other request should follow the product's unavailable or waitlist rule.

If the interface shows one reservation but storage contains two, I would treat the test as failed. If storage contains one but both customers receive a confirmation, I would record that failure too.

I wouldn't call one successful run proof that the problem is solved. Repeat the controlled interleaving and check the regression test after a fix. Record the conditions covered and the ones still untested.

Test a timeout after the booking may have succeeded

A timeout leaves a question that matters to the customer. Did the booking fail, or did the reply fail to arrive?

In a separate staging test, let the server accept a reservation and interrupt the response before the client receives it. Then retry the same booking intent using the same operation identifier. Check that the result resolves to the existing reservation instead of creating another one.

The Amazon Builders' Library explains caller-provided identifiers for safe retries. I would ask the developer how the identifier, reservation write and returned result stay consistent. I would also test reuse of an identifier with different booking details, because that should have an explicit response.

Two customers competing for a slot and one customer repeating a request are separate tests. The first checks capacity. The second checks whether the same action can be repeated safely.

Check what happens when the calendar service refuses a request

I would test calendar errors separately from the booking decision. Your product needs a written rule for whether a reservation is confirmed, pending synchronization or failed when an external calendar is unavailable.

Google's Calendar API error guide gives different responses for different failures. It advises changing an invalid 400 request, using backoff for rate-limit errors, and handling an existing identifier or stale version deliberately. Those are API responses, not proof that retrying your entire booking workflow is safe.

Ask what a customer sees while synchronization is pending. Then restore the test calendar connection and check the final state. I want to see one reservation linked to the intended calendar event, with a recoverable error if reconciliation still fails.

Use this staging test matrix

I would put these checks in the release record. The expected results below are recommendations for the fictional capacity-one example, not a certification standard.

Booking reliability checks and the evidence to retain
TestExpected behaviorKeep as evidence
Two customers, one intervalAt most one active confirmed reservation. The other request follows the stated capacity rule.Both request IDs, both responses, durable reservation count and confirmation state.
Response lost after acceptanceRetrying the same intent resolves to the same reservation.Original operation ID, retry response and final reservation identifier.
Reschedule competes with a new bookingThe result follows the written overlap and hold policy. A failed move leaves a clear state.Before-and-after reservations and what each customer sees.
Calendar returns a rate limitRetry is bounded and the product displays its stated pending or failure state.Error classification, retry schedule and final reconciliation result.
Cancellation competes with rebookingCapacity and confirmations follow the cancellation policy without losing the audit trail.State transitions, resulting capacity and notifications.

Keep the evidence free of real customer information. A clean reproduction with invented accounts is more useful than a screenshot full of private appointments.

Make the release decision from the evidence

I would hold a capacity-one booking workflow if a reproducible test creates overlapping confirmed reservations. I would also hold it if two people receive confirmations for a slot that only one can use. That's my release recommendation for this example, because both failures break the promise the booking screen makes.

Before signing off a fix, write down the build tested, the booking rule, the steps, the expected result and what actually happened. Add the regression test and the remaining limitations. A reviewer should be able to repeat the check without guessing what was changed.

This guide covers concurrency and recovery. It doesn't replace testing permissions, payments, accessibility or time-zone behavior. I would connect it to the role-testing guide and the time-zone and daylight-saving guide when those affect the same booking flow.

Need a separate review before launch?

WTG's calendar and scheduling audit starts with a written scope and assessment. Findings include reproduction steps, and assigned fixes go through reviewed pull requests and retesting.

Request a consultation

Questions about booking tests

Does a calendar availability check prevent double booking?

It only tells you what availability looked like at that moment. I would also verify the rule at the authoritative booking write, because another request may arrive before the first one finishes.

Does one passing race test prove the app is safe?

No. It proves only what was observed in that run. I would retain a controlled reproduction, repeat it after the fix and record the concurrency and failure conditions that remain untested.

Can I run this against live bookings?

I would start in a disposable staging environment with invented accounts and a test calendar. Any production testing needs its own written scope and safeguards.

How this guide was prepared

Researched November 20, 2026 using the primary documentation below. This is an original practical test framework, not a report of tests on a client system. The room, times and customer labels are invented examples. AI assisted research, drafting and review. This version has not been separately reviewed by Thomas.

Sources

The implementation facts come from these primary sources. The staging matrix and release recommendations are WTG editorial analysis. Access dates are not source publication dates.