Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uber/kraken
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7b95d74e4f9d2d6e543a296500db2bf9f6dcc7ae
Choose a base ref
..
head repository: uber/kraken
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3f3297c830381f653f4456d72b1cf1f8fc1420d3
Choose a head ref
Showing with 11 additions and 12 deletions.
  1. +11 −12 lib/backend/manager_test.go
23 changes: 11 additions & 12 deletions lib/backend/manager_test.go
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ import (

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
"gopkg.in/yaml.v2"
)

@@ -132,17 +131,17 @@ func TestManagerBandwidth(t *testing.T) {
m, err := NewManager(
ManagerConfig{},
[]Config{{
Namespace: ".*",
Bandwidth: bandwidth.Config{
EgressBitsPerSec: 10,
IngressBitsPerSec: 50,
TokenSize: 1,
Enable: true,
},
Backend: map[string]interface{}{
"testfs": testfs.Config{Addr: "test-addr", NamePath: namepath.Identity},
},
}}, AuthConfig{}, tally.NoopScope)
Namespace: ".*",
Bandwidth: bandwidth.Config{
EgressBitsPerSec: 10,
IngressBitsPerSec: 50,
TokenSize: 1,
Enable: true,
},
Backend: map[string]interface{}{
"testfs": testfs.Config{Addr: "test-addr", NamePath: namepath.Identity},
},
}}, AuthConfig{}, tally.NoopScope)
require.NoError(err)

checkBandwidth := func(egress, ingress int64) {