Skip to content

Commit c20da5d

Browse files
committed
The url for optimizebranch was incorrect in tests and implementation
1 parent c485d56 commit c20da5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/connectionConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ ConnectionConfig.prototype.commitDescriptorUrl = function(commitId) {
565565
ConnectionConfig.prototype.optimizeBranchUrl = function(branchId) {
566566
//let o = this.optimizeBase()
567567
const dbBase = this.dbBase('optimize')
568-
return `${dbBase}${this.repoid}/branch/${encodeURIComponent(branchId)}`
568+
return `${dbBase}/${this.repoid}/branch/${encodeURIComponent(branchId)}`
569569
//return dbBase + `${this.user()}/${this.db()}/${this.repoid}/branch/${nuid}`
570570
}
571571

test/connectionConfing.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('connectionConfig tests', function() {
6666
})
6767

6868
it('check set branch', function() {
69-
const optimizeUrl = 'http://localhost:6363/api/optimize/admin/testDBlocal/branch/%23%23branch01'
69+
const optimizeUrl = 'http://localhost:6363/api/optimize/admin/testDB/local/branch/%23%23branch01'
7070
/*
7171
* the dbURL dosen't change
7272
*/

0 commit comments

Comments
 (0)