Skip to content

Commit 4c804cd

Browse files
authored
fix flakes (calcom#27849)
1 parent 98b6d63 commit 4c804cd

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.e2e-spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ describe("Slots 2024-04-15 Endpoints", () => {
468468
it("should do a booking and slot should not be available at that time", async () => {
469469
const startTime = "2050-09-05T11:00:00.000Z";
470470
const booking = await bookingsRepositoryFixture.create({
471-
uid: `booking-uid-${randomString()}`,
471+
uid: `booking-uid-${eventTypeId}`,
472472
title: "booking title",
473473
startTime,
474474
endTime: "2050-09-05T12:00:00.000Z",
@@ -515,7 +515,7 @@ describe("Slots 2024-04-15 Endpoints", () => {
515515
it("should do a booking for seated event and slot should show attendees count and bookingUid", async () => {
516516
const startTime = "2050-09-05T11:00:00.000Z";
517517
const booking = await bookingsRepositoryFixture.create({
518-
uid: `booking-uid-${randomString()}`,
518+
uid: `booking-uid-${seatedEventTypeId}`,
519519
title: "booking title",
520520
startTime,
521521
endTime: "2050-09-05T12:00:00.000Z",
@@ -549,7 +549,7 @@ describe("Slots 2024-04-15 Endpoints", () => {
549549
});
550550

551551
bookingSeatsRepositoryFixture.create({
552-
referenceUid: "100",
552+
referenceUid: randomString(),
553553
data: {},
554554
booking: {
555555
connect: {
@@ -598,7 +598,7 @@ describe("Slots 2024-04-15 Endpoints", () => {
598598
it("should do a booking for seated event and slot should show attendees count and bookingUid in range format", async () => {
599599
const startTime = "2050-09-05T11:00:00.000Z";
600600
const booking = await bookingsRepositoryFixture.create({
601-
uid: `booking-uid-${randomString()}`,
601+
uid: `booking-uid-${seatedEventTypeId}`,
602602
title: "booking title",
603603
startTime,
604604
endTime: "2050-09-05T12:00:00.000Z",
@@ -632,7 +632,7 @@ describe("Slots 2024-04-15 Endpoints", () => {
632632
});
633633

634634
bookingSeatsRepositoryFixture.create({
635-
referenceUid: "100",
635+
referenceUid: randomString(),
636636
data: {},
637637
booking: {
638638
connect: {

apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/e2e/user-event-type-slots.controller.e2e-spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ describe("Slots 2024-09-04 Endpoints", () => {
787787
it("should do a booking and slot should not be available at that time", async () => {
788788
const startTime = "2050-09-05T11:00:00.000Z";
789789
const booking = await bookingsRepositoryFixture.create({
790-
uid: `booking-uid-${randomString()}`,
790+
uid: `booking-uid-${eventTypeId}`,
791791
title: "booking title",
792792
startTime,
793793
endTime: "2050-09-05T12:00:00.000Z",
@@ -832,7 +832,7 @@ describe("Slots 2024-09-04 Endpoints", () => {
832832
it("should do a booking for seated event and slot should show attendees count and bookingUid", async () => {
833833
const startTime = "2050-09-05T11:00:00.000Z";
834834
const booking = await bookingsRepositoryFixture.create({
835-
uid: `booking-uid-${randomString()}`,
835+
uid: `booking-uid-${seatedEventType.id}`,
836836
title: "booking title",
837837
startTime,
838838
endTime: "2050-09-05T12:00:00.000Z",
@@ -866,7 +866,7 @@ describe("Slots 2024-09-04 Endpoints", () => {
866866
});
867867

868868
bookingSeatsRepositoryFixture.create({
869-
referenceUid: "100",
869+
referenceUid: randomString(),
870870
data: {},
871871
booking: {
872872
connect: {
@@ -961,7 +961,7 @@ describe("Slots 2024-09-04 Endpoints", () => {
961961
it("should do a booking for seated event and slot should show attendees count and bookingUid and return range format", async () => {
962962
const startTime = "2050-09-05T11:00:00.000Z";
963963
const booking = await bookingsRepositoryFixture.create({
964-
uid: `booking-uid-${randomString()}`,
964+
uid: `booking-uid-${seatedEventType.id}`,
965965
title: "booking title",
966966
startTime,
967967
endTime: "2050-09-05T12:00:00.000Z",
@@ -995,7 +995,7 @@ describe("Slots 2024-09-04 Endpoints", () => {
995995
});
996996

997997
bookingSeatsRepositoryFixture.create({
998-
referenceUid: "100",
998+
referenceUid: randomString(),
999999
data: {},
10001000
booking: {
10011001
connect: {

0 commit comments

Comments
 (0)