Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Feb 1, 2024
1 parent 1f06e21 commit ab8b91d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class CiVisibilityExporter extends AgentInfoExporter {

getKnownTests (testConfiguration, callback) {
if (!this.shouldRequestKnownTests()) {
return callback(null, undefined)
return callback(null)
}
this._canUseCiVisProtocolPromise.then((canUseCiVisProtocol) => {
if (!canUseCiVisProtocol) {
Expand Down Expand Up @@ -199,6 +199,9 @@ class CiVisibilityExporter extends AgentInfoExporter {

// Takes into account potential kill switches
getConfiguration (remoteConfiguration) {
if (!remoteConfiguration) {
return {}
}
const {
isCodeCoverageEnabled,
isSuitesSkippingEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ describe('CI Visibility Exporter', () => {
requireGit: false,
isCodeCoverageEnabled: true,
isItrEnabled: true,
isSuitesSkippingEnabled: true
isSuitesSkippingEnabled: true,
isEarlyFlakeDetectionEnabled: false
})
expect(err).not.to.exist
expect(scope.isDone()).to.be.true
Expand Down

0 comments on commit ab8b91d

Please sign in to comment.