fix: websocket multiple instance conflict

This commit is contained in:
lilong.129
2024-08-20 22:36:31 +08:00
parent 55f56c9bcc
commit 3a8faf4aac
2 changed files with 25 additions and 23 deletions

View File

@@ -410,6 +410,7 @@ func (r *CaseRunner) NewSession() *SessionRunner {
summary: newSummary(),
transactions: make(map[string]map[transactionType]time.Time),
ws: newWSSession(),
}
return sessionRunner
}
@@ -425,6 +426,9 @@ type SessionRunner struct {
// transactions stores transaction timing info.
// key is transaction name, value is map of transaction type and time, e.g. start time and end time.
transactions map[string]map[transactionType]time.Time
// websocket session
ws *wsSession
}
// Start runs the test steps in sequential order.