Skip to content

Commit

Permalink
usm: http2: tests: Use empty configuration (DataDog#31652)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Dec 2, 2024
1 parent 067141b commit a480276
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/network/usm/usm_http2_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ type usmHTTP2Suite struct {
}

func (s *usmHTTP2Suite) getCfg() *config.Config {
cfg := config.New()
cfg.EnableIstioMonitoring = false
cfg := utils.NewUSMEmptyConfig()
cfg.EnableHTTP2Monitoring = true
cfg.EnableGoTLSSupport = s.isTLS
cfg.GoTLSExcludeSelf = s.isTLS
Expand Down Expand Up @@ -1510,9 +1509,7 @@ func (s *usmHTTP2Suite) TestRawHuffmanEncoding() {

func TestHTTP2InFlightMapCleaner(t *testing.T) {
skipIfKernelNotSupported(t)
cfg := config.New()
cfg.EnableGoTLSSupport = false
cfg.EnableIstioMonitoring = false
cfg := utils.NewUSMEmptyConfig()
cfg.EnableHTTP2Monitoring = true
cfg.HTTP2DynamicTableMapCleanerInterval = 5 * time.Second
cfg.HTTPIdleConnectionTTL = time.Second
Expand Down

0 comments on commit a480276

Please sign in to comment.