Skip to content

Commit

Permalink
fix: set get called false in the declaration (#1281) (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
starsz authored Jan 13, 2021
1 parent 14a3b5a commit 5f22326
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/internal/handler/consumer/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestHandler_Get(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("Get", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down Expand Up @@ -140,7 +140,7 @@ func TestHandler_List(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("List", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/global_rule/global_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestHandler_Get(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("Get", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestHandler_List(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("List", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down
4 changes: 2 additions & 2 deletions api/internal/handler/server_info/server_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestHandler_Get(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("Get", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down Expand Up @@ -188,7 +188,7 @@ func TestHandler_List(t *testing.T) {

for _, tc := range tests {
t.Run(tc.caseDesc, func(t *testing.T) {
getCalled := true
getCalled := false
mStore := &store.MockInterface{}
mStore.On("List", mock.Anything).Run(func(args mock.Arguments) {
getCalled = true
Expand Down

0 comments on commit 5f22326

Please sign in to comment.