Skip to content

Commit 205970c

Browse files
Merge pull request #289 from contentstack/fix/sanity-delay
Fix: Await response in branch merge for proper async handling
2 parents 4f626e2 + f970ba7 commit 205970c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sanity-check/api/branch-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('Branch api Test', () => {
158158
}
159159
]
160160
}
161-
const response = makeBranch().merge(mergeObj, params)
161+
const response = await makeBranch().merge(mergeObj, params)
162162
mergeJobUid = response.uid
163163
expect(response.merge_details.base_branch).to.be.equal(branch.uid)
164164
expect(response.merge_details.compare_branch).to.be.equal(stageBranch.uid)

0 commit comments

Comments
 (0)