Skip to content

Commit

Permalink
Concept hooks return status response
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrNestor committed Feb 21, 2024
1 parent 1aac184 commit 394bd6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions execution/scenarioExecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ func (e *scenarioExecutor) notifyBeforeConcept(conceptResult *result.ScenarioRes
ConceptExecutionStartingRequest: &gauge_messages.ConceptExecutionStartingRequest{CurrentExecutionInfo: e.currentExecutionInfo, Stream: int32(e.stream)}}
e.pluginHandler.NotifyPlugins(message)
if (e.runner.Info().ConceptMessages) {
_ = e.runner.ExecuteAndGetStatus(message)
res := e.runner.ExecuteAndGetStatus(message)
if (res != nil) {
logger.Info(true, res.ErrorMessage)
}
}
}

Expand All @@ -155,7 +158,10 @@ func (e *scenarioExecutor) notifyAfterConcept(conceptResult *result.ScenarioResu
ConceptExecutionEndingRequest: &gauge_messages.ConceptExecutionEndingRequest{CurrentExecutionInfo: e.currentExecutionInfo, Stream: int32(e.stream)}}
e.pluginHandler.NotifyPlugins(message)
if (e.runner.Info().ConceptMessages) {
_ = e.runner.ExecuteAndGetStatus(message)
res := e.runner.ExecuteAndGetStatus(message)
if (res != nil) {
logger.Info(true, res.ErrorMessage)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

// CurrentGaugeVersion represents the current version of Gauge
var CurrentGaugeVersion = &Version{1, 6, 2}
var CurrentGaugeVersion = &Version{1, 6, 3}

// BuildMetadata represents build information of current release (e.g, nightly build information)
var BuildMetadata = ""
Expand Down

0 comments on commit 394bd6c

Please sign in to comment.