Skip to content

Commit

Permalink
Fix RPC tests package build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Sep 30, 2024
1 parent fd4f5cc commit 6a8874f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/synchronization_forcer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/TykTechnologies/tyk/apidef"
"github.com/TykTechnologies/tyk/config"
"github.com/TykTechnologies/tyk/internal/model"
"github.com/TykTechnologies/tyk/storage"
)

Expand Down Expand Up @@ -52,14 +52,14 @@ func TestGroupLoginCallback(t *testing.T) {
groupID := "group"

//first time, it should force since the group key doesn't exists
groupLogin, ok := sf.GroupLoginCallback(key, groupID).(apidef.GroupLoginRequest)
groupLogin, ok := sf.GroupLoginCallback(key, groupID).(model.GroupLoginRequest)
assert.True(t, ok)
assert.Equal(t, true, groupLogin.ForceSync)
assert.Equal(t, key, groupLogin.UserKey)
assert.Equal(t, groupID, groupLogin.GroupID)

//second time, it shouldn't force since the group key already exists
groupLogin, ok = sf.GroupLoginCallback(key, groupID).(apidef.GroupLoginRequest)
groupLogin, ok = sf.GroupLoginCallback(key, groupID).(model.GroupLoginRequest)
assert.True(t, ok)
assert.Equal(t, false, groupLogin.ForceSync)
assert.Equal(t, key, groupLogin.UserKey)
Expand Down

0 comments on commit 6a8874f

Please sign in to comment.