Skip to content

Commit

Permalink
[hubtest] escpae scenario asssert meta keys (#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones authored Oct 17, 2023
1 parent a4dc505 commit d2d788c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hubtest/scenario_assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (s *ScenarioAssert) AutoGenScenarioAssert() string {
}
for evtIndex, evt := range event.Overflow.Alert.Events {
for _, meta := range evt.Meta {
ret += fmt.Sprintf(`results[%d].Overflow.Alert.Events[%d].GetMeta("%s") == "%s"`+"\n", eventIndex, evtIndex, meta.Key, meta.Value)
ret += fmt.Sprintf(`results[%d].Overflow.Alert.Events[%d].GetMeta("%s") == "%s"`+"\n", eventIndex, evtIndex, meta.Key, Escape(meta.Value))
}
}
ret += fmt.Sprintf(`results[%d].Overflow.Alert.GetScenario() == "%s"`+"\n", eventIndex, *event.Overflow.Alert.Scenario)
Expand Down

0 comments on commit d2d788c

Please sign in to comment.