Linter fixes PR 3 (#4415)
* Linter fixes * fix(bsr): update test to register TEST protocol once --------- Co-authored-by: Damian Debkowski <damian.debkowski@hashicorp.com>
This commit is contained in:
1 parent
e95eda7ca2
commit
35cef97bd4
119 files changed
+365
-300
No files matched your search
@@ -27,16 +27,7 @@ import (
|
||||
// This test validates that the minimum buffer size for each file
|
||||
// type is accurate.
|
||||
func TestValidateBufferSize(t *testing.T) {
|
||||
protocol := bsr.Protocol("TEST")
|
||||
bsr.RegisterSummaryAllocFunc(protocol, bsr.SessionContainer, func(ctx context.Context) bsr.Summary {
|
||||
return &bsr.BaseSessionSummary{Id: "sr_123456789", ConnectionCount: 1}
|
||||
})
|
||||
bsr.RegisterSummaryAllocFunc(protocol, bsr.ConnectionContainer, func(ctx context.Context) bsr.Summary {
|
||||
return &bsr.BaseConnectionSummary{Id: "cr_123456789", ChannelCount: 1}
|
||||
})
|
||||
bsr.RegisterSummaryAllocFunc(protocol, bsr.ChannelContainer, func(ctx context.Context) bsr.Summary {
|
||||
return &bsr.BaseChannelSummary{Id: "chr_123456789", ConnectionRecordingId: "cr_123456789"}
|
||||
})
|
||||
protocol := bsr.TestRegisterSummaryAllocFunc(t)
|
||||
|
||||
ctx := context.Background()
|
||||
ts := time.Date(1995, time.March, 3, 12, 12, 12, 999999999, time.UTC)
|
||||
|
||||
Reference in new issue
Block a user