File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ func TestCachingSha2CacheTLS(t *testing.T) {
6060
6161type RemoteThrottleProvider struct {
6262 * InMemoryProvider
63- getCredCallCnt atomic.Int64
63+ getCredCallCount atomic.Int64
6464}
6565
6666func (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 {
You can’t perform that action at this time.
0 commit comments