add wait after staging deploy
This commit is contained in:
parent
594d0ec8cd
commit
55c5d59b04
@ -44,6 +44,9 @@ jobs:
|
||||
ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
|
||||
AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
|
||||
|
||||
- name: Wait after 15s deploy staging
|
||||
run: sleep 15s
|
||||
|
||||
- name: run staging integration test
|
||||
run: bun integ-test:staging
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ export function isTTLInFuture(item?: { TTL: number }) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ttl is a UTC ms time
|
||||
// ttl is a UTC seconds time
|
||||
const ttl = item.TTL || 0;
|
||||
|
||||
return parseInt("" + ttl) > getCurrentTimeInSeconds();
|
||||
|
||||
@ -22,6 +22,10 @@ describe("buzzer client works", () => {
|
||||
});
|
||||
|
||||
test("sample e2e happy path", async () => {
|
||||
// make sure it is locked
|
||||
const lockResp = await fetch(baseUrl + `/api/door/status?door=${doorName}`);
|
||||
expect(lockResp.status).toBe(200);
|
||||
|
||||
// unlock door
|
||||
const authResp = await fetch(baseUrl + `/api/door/auth?door=${doorName}&key=${key}`);
|
||||
expect(authResp.status).toBe(200);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user