Skip to content

Commit

Permalink
Merge pull request #4788 from grafana/dev
Browse files Browse the repository at this point in the history
dev to main
  • Loading branch information
vadimkerr authored Aug 7, 2024
2 parents 0b038fc + fbd68b1 commit a7c0862
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/expensive-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
# - 10.2.4
# - latest
fail-fast: false
# Run one version at a time to avoid the issue when SMS notification are bundled together for multiple versions
# running at the same time (the affected test is in grafana-plugin/e2e-tests/alerts/sms.test.ts)
max-parallel: 1
uses: ./.github/workflows/e2e-tests.yml
with:
grafana_version: ${{ matrix.grafana_version }}
Expand Down
2 changes: 1 addition & 1 deletion grafana-plugin/e2e-tests/alerts/sms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ test('we can verify our phone number + receive an SMS alert @expensive', async (
const smsAlertNotification = await waitForSms();

expect(smsAlertNotification).toContain('OnCall');
expect(smsAlertNotification).toContain('alert');
expect(smsAlertNotification).toContain('Alert group');
});
2 changes: 1 addition & 1 deletion grafana-plugin/e2e-tests/utils/phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const waitForSms = async (): Promise<string> => {
// only start waiting for smses that would've been received after this function has been invoked
since: new Date(),
phoneNumberId: phoneNumber.id,
timeout: 30_000,
timeout: 180_000, // Wait for 3 minutes as SMS notifications are bundled and can take 2+ minutes to arrive
},
});
return sms.body;
Expand Down

0 comments on commit a7c0862

Please sign in to comment.