Skip to content

Commit

Permalink
Make race detector happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Schwartz committed Jan 28, 2021
1 parent 046dbd4 commit c6a4dcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration_test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,14 @@ func TestTCPEcho(t *testing.T) {

type statusMetrics struct {
metrics.NoOpMetrics
sync.Mutex
statuses []string
}

func (m *statusMetrics) AddClosedTCPConnection(clientLocation, accessKey, status string, data metrics.ProxyMetrics, timeToCipher, duration time.Duration) {
m.Lock()
m.statuses = append(m.statuses, status)
m.Unlock()
}

func TestRestrictedAddresses(t *testing.T) {
Expand Down

0 comments on commit c6a4dcb

Please sign in to comment.