Skip to content

Commit 8e4c871

Browse files
committed
address comment
Signed-off-by: lance6716 <[email protected]>
1 parent a5a9522 commit 8e4c871

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/caching_sha2_cache_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ func TestCachingSha2CacheTLS(t *testing.T) {
6060

6161
type RemoteThrottleProvider struct {
6262
*InMemoryProvider
63-
getCredCallCnt atomic.Int64
63+
getCredCallCount atomic.Int64
6464
}
6565

6666
func (m *RemoteThrottleProvider) GetCredential(username string) (password string, found bool, err error) {
67-
m.getCredCallCnt.Add(1)
67+
m.getCredCallCount.Add(1)
6868
return m.InMemoryProvider.GetCredential(username)
6969
}
7070

@@ -139,7 +139,7 @@ func (s *cacheTestSuite) TestCache() {
139139
require.NoError(s.T(), err)
140140
s.db.SetMaxIdleConns(4)
141141
s.runSelect()
142-
got := s.credProvider.(*RemoteThrottleProvider).getCredCallCnt.Load()
142+
got := s.credProvider.(*RemoteThrottleProvider).getCredCallCount.Load()
143143
require.Equal(s.T(), int64(1), got)
144144

145145
if s.db != nil {
@@ -151,7 +151,7 @@ func (s *cacheTestSuite) TestCache() {
151151
require.NoError(s.T(), err)
152152
s.db.SetMaxIdleConns(4)
153153
s.runSelect()
154-
got = s.credProvider.(*RemoteThrottleProvider).getCredCallCnt.Load()
154+
got = s.credProvider.(*RemoteThrottleProvider).getCredCallCount.Load()
155155
require.Equal(s.T(), int64(1), got)
156156

157157
if s.db != nil {

0 commit comments

Comments
 (0)