Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Jul 14, 2024
1 parent cbcd5bb commit 9dba3b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ func TestGetAdaptiveSamplingComponents(t *testing.T) {
require.NoError(t, err)
assert.NotNil(t, comps.DistLock)
assert.NotNil(t, comps.SamplingStore)
assert.Equal(t, comps.Options.FollowerLeaseRefreshInterval, time.Duration(1))
assert.Equal(t, comps.Options.LeaderLeaseRefreshInterval, time.Duration(1))
assert.Equal(t, comps.Options.AggregationBuckets, 1)
assert.Equal(t, time.Duration(1), comps.Options.FollowerLeaseRefreshInterval)
assert.Equal(t, time.Duration(1), comps.Options.LeaderLeaseRefreshInterval)
assert.Equal(t, 1, comps.Options.AggregationBuckets)

// Error case
host = makeRemoteSamplingExtension(t, &Config{})
Expand All @@ -244,5 +244,5 @@ func TestDependencies(t *testing.T) {
TelemetrySettings: componenttest.NewNopTelemetrySettings(),
}, cfg)
require.NoError(t, err)
assert.Equal(t, ext.(*rsExtension).Dependencies(), []component.ID{jaegerstorage.ID})
assert.Equal(t, []component.ID{jaegerstorage.ID}, ext.(*rsExtension).Dependencies())
}

0 comments on commit 9dba3b7

Please sign in to comment.