Skip to content

Commit

Permalink
fix(server): fix TestRunEvent mapping in WebSocket (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc authored Apr 5, 2023
1 parent 40560b1 commit 5a82464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/http/websocket/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func (e subscribeCommandExecutor) ResourceUpdatedEvent(resource interface{}) Eve
mapped = e.mappers.Out.TransactionRun(v)
case *model.TransactionRun:
mapped = e.mappers.Out.TransactionRun(*v)
case model.TestRunEvent:
mapped = e.mappers.Out.TestRunEvent(v)
default:
fmt.Printf("type %T mapping not supported\n", v)
mapped = v
Expand Down

0 comments on commit 5a82464

Please sign in to comment.