Skip to content

Commit

Permalink
line length
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Mar 28, 2024
1 parent 02df17d commit 8b04a3d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sdktests/server_side_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,17 @@ func errorsDoNotAffectSubsequentStages(t *ldtest.T) {

hooks.ExpectCall(t, hookName, func(payload servicedef.HookExecutionPayload) bool {
if payload.Stage.Value() == servicedef.BeforeEvaluation {
t.Errorf("SDK implementation error: beforeEvaluation should not have caused a POST to the test harness; ensure exception is thrown/error returned in this stage")
t.Errorf("SDK implementation error: beforeEvaluation should not " +
"have caused a POST to the test harness; ensure exception is thrown/error " +
"returned in this stage")
return false
}
if payload.Stage.Value() == servicedef.AfterEvaluation {
// Requirement HOOKS:1.3.7.1 says that:
// "The client should use the data from the previous successful stage, or empty data if there is no previous stage."
// Since there are no other preceding stages besides beforeEvaluation, then the data should be empty.
// "The client should use the data from the previous successful stage,
// or empty data if there is no previous stage."
// Since there are no other preceding stages besides beforeEvaluation, then the
// data should be empty.
hookData := payload.EvaluationSeriesData.Value()
assert.Len(t, hookData, 0)
return true
Expand Down

0 comments on commit 8b04a3d

Please sign in to comment.