Skip to content

Commit bd8acaa

Browse files
committed
Merge branch 'postdeploy' into stalledIT
2 parents 4f6a3e4 + ddb8538 commit bd8acaa

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

deploy-ci-version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ echo ""
6666
echo "Version deployment complete!"
6767
echo "----------------------------------------"
6868
echo "Deployment information:"
69-
echo "WORKER_VERSION_ID=$WORKER_VERSION_ID"
70-
echo "VERSION_PREVIEW_URL=$VERSION_PREVIEW_URL"
71-
echo "VERSION_PREVIEW_BRANCH=$BRANCH"
69+
echo "export WORKER_VERSION_ID=$WORKER_VERSION_ID"
70+
echo "export VERSION_PREVIEW_URL=$VERSION_PREVIEW_URL"
71+
echo "export VERSION_PREVIEW_BRANCH=$BRANCH"
7272
echo "----------------------------------------"
7373

test/it/it-tests.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ export default (ctx) => describe('Integration Tests: it tests', function () {
268268
assert.strictEqual(resp.status, 200, `Expected 200 OK, got ${resp.status}`);
269269

270270
const body = await resp.json();
271-
assert.strictEqual(body.length, 1, `Expected 1 repo, got ${body.length}`);
272-
assert.strictEqual(body[0].name, repo, `Expected ${repo}, got ${body[0].name}`);
271+
assert.ok(body.length > 0, `Expected at least 1 repo, got ${body.length}`);
272+
// need to find the current repo in the list
273+
const repoItem = body.find((item) => item.name === repo);
274+
assert.ok(repoItem, `Expected ${repo} to be in the list`);
273275
});
274276

275277
it('cannot delete an object via HTTP request if not authenticated', async () => {

0 commit comments

Comments
 (0)