Skip to content

Commit f72e5a5

Browse files
committed
e2e: add check for config
Signed-off-by: Victoria Dye <[email protected]>
1 parent 10fee03 commit f72e5a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/e2e/features/step_definitions/repository.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ Then('bundles are downloaded and used', async function(this: BundleServerWorld)
6767
}
6868
})
6969

70-
const result = clonedRepo.runGit("for-each-ref", "--format=%(refname)")
70+
// Make sure the config is set up properly
71+
let result = clonedRepo.runGit("config", "--get", "fetch.bundleURI")
72+
utils.assertStatus(0, result, "'fetch.bundleURI' is not set after clone")
73+
const actualURI = result.stdout.toString().trim()
74+
assert.strictEqual(actualURI, this.bundleServer.bundleUri())
75+
76+
result = clonedRepo.runGit("for-each-ref", "--format=%(refname)")
7177
assert.strictEqual(result.status, 0, "git for-each-ref failed")
7278

7379
const bundleRefRegex = new RegExp('^refs/bundles/.*$')

0 commit comments

Comments
 (0)